POST
|
Still no luck. I found a workaround by copying and pasting the code from the other tool directly into my script as a function. I included credits in the code, so hopefully it doesn't count as plagiarizing. Thanks for the help anyway.
... View more
11-26-2015
03:23 PM
|
1
|
0
|
586
|
POST
|
I've tried it without as well. Sorry that example was just my last attempt at it. As far as I can tell, the second argument is required only if the toolbox doesn't have an alias defined. But this one does. I was just experimenting.
... View more
11-26-2015
12:22 PM
|
0
|
1
|
586
|
POST
|
Yeah I do. Its the first line I have in the code after import arcpy. arcpy.ImportToolbox(r'C:\Users\jamil.harvich\Documents\ArcGIS\Python_Scripts\Working\IP_Anno\IP_Labels.tbx', 'IP') Can you see any problems with the syntax here?
... View more
11-26-2015
11:58 AM
|
0
|
3
|
586
|
POST
|
Yes I am. The script runs fine outside of ArcGIS, but as soon as I try to make it a tool with parameters, it gives me the error.
... View more
11-26-2015
11:43 AM
|
0
|
5
|
586
|
POST
|
I'm trying to call on a custom python script within another script. The tool I'm creating takes 2 feature classes as inputs. I am calling on another custom tool that was downloaded in this script. If I run my script outside of ArcGIS, using predefined paths for the two feature classes, everything works fine. When I try to run my script as a tool using "arcpy.GetParameterAsText()" I get an error saying that the other script that I am referencing can't be found. Here is the error I get: Traceback (most recent call last): File "C:\Users\jamil.harvich\Documents\ArcGIS\Python_Scripts\Working\IP_Anno\Script\Script_Part1.py", line 80, in <module> arcpy.ConcatenateRowValues_IP(lyr[0] + '_Intersect', 'SHORT_DESC', 'NAME', lyr[2], '-') File "C:\Users\jamil.harvich\Documents\ArcGIS\Python_Scripts\Working\IP_Anno\IP_Labels.tbx", line 54, in ConcatenateRowValues qN9X/X6ErfAD4ZAf8k08Gf8AhO2X/wAapjfAH4aY4+Gngz/wnLL/AONVgXPxuMvibxL4gsZzfeA/ AttributeError: Object: Tool or environment <ConcatenateRowValues_IP> not found
... View more
11-26-2015
10:55 AM
|
0
|
8
|
3527
|
POST
|
Hello all, I'm trying to figure out how to set up a relationship class so that deleting a feature in one feature class deletes it's corresponding feature in the other feature class both ways. It seems as though the settings only allow deletion of an origin feature to delete the destination feature, but what if I would like it to work in the other direction as well? Meaning deletion of the destination feature causes deletion of the origin feature. Is there a way to do this? Any recommendations would be greatly appreciated. Thanks
... View more
09-08-2014
07:49 AM
|
0
|
0
|
3429
|
Title | Kudos | Posted |
---|---|---|
1 | 11-26-2015 03:23 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|