New answers tagged

0

As suggested by @KirkKuykendall: Instead of using new MxDocumentClass to start arcmap.exe, you might try the more customary way ... using ProcessStartInfo with ProcessWindowStyle.Minimized, then Process.Start. Then listen to AppROTEvents.AppAdded to get an IApplication reference.


3

You are calling arcpy.ZonalStatistics_sa() but arcpy does not have that function. The function is whithin the sa module and can be called as follows: arcpy.sa.ZonalStatistics(in_zone_data, zone_field, in_value_raster, {statistics_type}, {ignore_nodata}) However, you already ran from arcpy.sa import * so the following should be enough to run the tool: ...


0

I think you're looking for this procedure :creating-new-points-along-a-line.htm from the ESRI help Construct Points creates new point features at intervals along a selected line. For instance, you could use Construct Points to place utility poles along an electric line. You can create a specific number of points that are evenly spaced, or you can create ...


2

You cannot get current status of the tool execution when it has been executed in Python (arcpy). The tool would have to execute Asynchronously, not blocking your application to support this. If it was Async you'd assign the execution call to a variable and check the variable status. Thats exactly how a GP Service works. But your scenario is calling a tool in ...


0

I have been working on a Python Add-In that has a Toolbar with buttons that launch Tools in a Python Toolbox. What I found is that I can define global variables (as None) in a Python Toolbox (.PYT) file above the class definitions for the tools, then have Python global statements for those variables in the updateParameters(self, parameters) method, but NOT ...


Top 50 recent answers are included