Hot answers tagged scripting
I think i found it. If i use >>>execfile instead of >>>import (name of script) it works as many times as i want without closing QGIS
This situation is always confusing. There are two types of 'Layers' in arcpy. The feature layer, which you are creating, isn't the type you can add to a map. The other is the layer generated from the mapping module. This is the one you want. Instead of MakeFeatureLayer, try this: NewLayer = arcpy.mapping.Layer(r"W:\Source.lyr") Then you can perform ...
Only top voted, non community-wiki answers of a minimum length are eligible