POST
|
Is the tool dialog showing up? If not, are you sure you're passing in the correct path to the TBX and the correct Tool Name?
... View more
08-04-2014
11:49 AM
|
0
|
0
|
1091
|
POST
|
You could have a special attribute like _enabled, then only iff self._enabled AND the extension is enabled is the button enabled: class MyButtonClass(object): _enabled = True # Enabled by default def onClick(self): # ...do stuff... pass @property def enabled(self): try: return self._enabled and my_extension.enabled except NameError: return False Then you just set self._enabled as you normally would set self.enabled and you get a composite behavior where the button is enabled only when it wants to be and the extension is ready to go too.
... View more
08-01-2014
03:42 PM
|
1
|
0
|
474
|
POST
|
If your extension's ID is MyAddin_addin.my_extension and you've got a button whose ID is MyAddin_addin.my_button based on the class MyAddin_addin.MyButtonClass, you can define .enabled as a property on your button class:
class MyButtonClass(object):
def onClick(self):
# ...do stuff...
pass
@property
def enabled(self):
try:
return my_extension.enabled
except NameError:
return False
Now every time the app checks if your button is enabled, the button will pass through and query the extension.
... View more
08-01-2014
12:24 PM
|
0
|
2
|
474
|
DOC
|
I'd also like to mention The History of Rome Podcast -- it's an excellent (free!) podcast (one of my favorites ever) and this map adds a lot of visual context to enhance the experience.
... View more
08-01-2014
08:52 AM
|
0
|
0
|
3622
|
POST
|
Can you post a full traceback? There's a lot that could be going wrong here. arcpy.mapping should work the same in all environments, I suspect something else is at play here.
... View more
07-31-2014
01:25 PM
|
0
|
1
|
835
|
DOC
|
Is this at its greatest extent in a point in history, or the furthest points to which it extended throughout history? Would be nice to explore this dataset through time and explore name changes, etc.
... View more
07-31-2014
01:13 PM
|
0
|
0
|
3622
|
POST
|
In 10.3 there will be a way to update layers' symbologies from a JSON definition, you will be able to author marker symbols that way.
... View more
07-30-2014
04:41 PM
|
0
|
0
|
232
|
POST
|
The sign-in dialog should never appear when running as a Python script. This is a bug. Please contact support.
... View more
07-09-2014
10:04 AM
|
0
|
0
|
359
|
POST
|
Python is an optional install in Pro App. If you don't download/install the Python for ArcGIS Pro package, Python will only be available from within the Pro App (it contains a Python runtime, not a full installation). Right now Pro App is at NumPy 1.8.0, I believe it'll be updated to the most recent version before Pro App's release date. The Python for Pro App installer will do what you expect it to do: it will install by default to C:\Python34\ (not C:\Python34\Desktop10.X\ like in previous versions).
... View more
06-27-2014
02:22 PM
|
0
|
0
|
813
|
POST
|
You'll need to make your table an output parameter of your tool. Only tables and layers that are specified as outputs will be added to the table of contents, the geoprocessing framework assumes any other layers and tables that aren't named are intermediate data. So do this: Add a parameter to your script tool: Output, Table View At the end of your script, use arcpy.SetParameterAsText(0, lyrName) to pass the table along
... View more
06-25-2014
09:54 AM
|
0
|
0
|
1177
|
POST
|
Try CS = "Geographic Coordinate Systems/GDA 1994 MGA Zone 55"
should work.
... View more
06-22-2014
05:43 PM
|
0
|
0
|
502
|
POST
|
It shouldn't be an issue. I'd just sort of try some things at this point, one of which would be to save the image as a PNG. I'd also do some diagnostic messaging just in case: if web_map_object.has_key("staticLegend"):
legendPath = os.path.join(template_path, "legends", web_map_object["staticLegend"])
arcpy.AddMessage("Setting legend to {0} -- is file? {1}".format(legendPath, os.path.isfile(legendPath)))
staticLegend.sourceImage = legendPath
... View more
06-20-2014
08:48 AM
|
0
|
0
|
590
|
POST
|
Hmm. The only way other you'd get that particular error message is if arcgis either could not find or could not open the image file.
... View more
06-19-2014
11:35 AM
|
0
|
0
|
590
|
Title | Kudos | Posted |
---|---|---|
1 | 09-26-2012 02:46 AM | |
2 | 01-06-2011 08:22 AM | |
1 | 03-25-2014 12:18 PM | |
1 | 08-12-2014 09:36 AM | |
1 | 03-31-2010 08:56 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|