New answers tagged arctoolbox
A couple things might be happening here. You have a transparency on the layer (unlikely). You have a stretch type defined in the symbology for the raster. This might be standard deviation: Set it to None and see if that makes any difference.
A few things... filter is a reserved name in Python (it's a builtin function) so you shouldn't use that as a variable name. your where clause is already a string as you are using GetParameterAsText() to return it as a string, so no need to put it inside quotes. You should try something like this: reference your where clause like this: where = ...
thanks to all your good suggestions, I finally managed to get it to work. And it is so simple, really: import arcpy arcpy.env.overwriteOutput = True arcpy.env.workspace = r"c:/ArcGISdata" arcpy.ImportToolbox(r'C:\ArcGISdata\Workshop.tbx') arcpy.Workshopmodel_TestAlias() print "Script finished" So everyone: I am so gratefull. This is going to help me so ...
You've only referenced the model, not called it. In short, add () to the end of the call. So in your case: arcpy.Workshopmodel_TestAlias(). At a simple level, your model is a method, not a variable. However, this will only work if you're model doesn't have required parameters, or if all required parameters have default values (you specified values in the ...
try: import arcpy arcpy.env.overwriteOutput = True arcpy.env.workspace = r"c:/ArcGISdata" arcpy.ImportToolbox(r"c:/ArcGISdata/Workshop.tbx") #check if toolbox is imported... print arcpy.ListToolboxes('Workshop') #check if tool exist... print arcpy.ListTools('Workshopmodel') arcpy.Workshopmodel() print "Script finished"
For me, something is missing in your code. Something like the general.runalg() query should be in front of the instruction calling your model, basicly what it does is run your model after you've imported the arctoolbox. If i remember correctly you'll need to write it like this general.runalg(your model name, input data, output data)
At the bottom of the help page for each tool, ESRI provides a list of the environments that can impact the tool's processing. For example, the Resample help page does not include Mask in its list. It does not include Cell Size in its list either, because the cell size option that is a direct and required input to the tool would overwrite it anyway. The ...
I suspect this is an issue with your geo-processing environment settings. Have you gone into that and changed it? If you go into that (Geoprocessing > Geoprocessing Options...) look at what your Results Management say. If you've never changed that then you will have accepted the default of 2 Weeks. If you read the help page Using geoprocessing options to ...
Top 50 recent answers are included