| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 9 months |
| seen | 47 mins ago | |
| stats | profile views | 30 |
|
2d |
comment |
Run Python child script using Python Add-In button class? I have tried similar text writing under button and within child script as well before posting question -- works in both cases. It seems that the problem is occurring due to the declaration of global variables in the child script. I will comment them out to test further. |
|
2d |
comment |
Run Python child script using Python Add-In button class? let us continue this discussion in chat |
|
2d |
comment |
Run Python child script using Python Add-In button class? I already have following as part of Add-In script: sMyPath = os.path.dirname(__file__)
sys.path.insert(0, sMyPath)
importing child failed with both above and following: sys.path.append("C:...) |
|
2d |
comment |
Run Python child script using Python Add-In button class? child is in the same folder as Add-In logic script. Importing it gives an error (no such module exists -- since it is not a library). I tried following but no avail: subprocess.call(['C:/Python27/ArcGIS10.1/python.exe','C:/temp/child.py']) |
|
2d |
comment |
Run Python child script using Python Add-In button class? If I understand your suggestion correctly: I imported modules and generated few outputs using python Add-In. This final step will use outputs from previous steps and do some random calculations. So it has to be fired from a button. |
|
2d |
asked | Run Python child script using Python Add-In button class? |
|
May 20 |
comment |
UnboundLocalError: local variable referenced before assignment I tried that way as well but still hung up with error. |
|
May 20 |
answered | UnboundLocalError: local variable referenced before assignment |
|
May 20 |
comment |
UnboundLocalError: local variable referenced before assignment It has value and do gets assigned. I checked it in arcmap interactive python window but can't get it to work in a stand alone script. |
|
May 20 |
asked | UnboundLocalError: local variable referenced before assignment |
|
May 17 |
comment |
Can ArcPy collapse layer in current data frame? I am not sure if I understand it correctly, but raster layers are generated as part of geoprocessing during current session so they are saved on hard disk and not to be saved as part of current mxd file -- automatically loaded in current data frame as not collapsed. Thanks for suggestion, I voted for it. |
|
May 17 |
asked | Can ArcPy collapse layer in current data frame? |
|
Apr 30 |
answered | What sources of granular wind data over the continental US are available? |
|
Apr 29 |
answered | Round Raster to next higher or lower int |
|
Apr 27 |
comment |
access attributes of one class for use in another class in python add-in This is neat. In my case, class A is calling class B (class B is wx.Frame). I didn't stop 'self.dlg' and it is in some sort of continuing loop. Please suggest how to kill this event once I accomplish something in class B. |
|
Apr 26 |
accepted | access attributes of one class for use in another class in python add-in |
|
Apr 26 |
answered | access attributes of one class for use in another class in python add-in |
|
Apr 26 |
comment |
access attributes of one class for use in another class in python add-in I was able to solve this issue with the inclusion of line 'global extent' right above 'extent = rectangle_geometry'. This way, attributes were available for all other classes in the script. |
|
Apr 23 |
asked | access attributes of one class for use in another class in python add-in |
|
Apr 17 |
awarded | Caucus |