POST
|
Thanks, I think I found something that works pretty easily from http://www.faqs.org/docs/diveintopython/regression_path.html import sys, os print 'sys.argv[0] =', sys.argv[0] pathname = os.path.dirname(sys.argv[0]) print 'path =', pathname print 'full path =', os.path.abspath(pathname) I modified it in my script to just include; pathname = os.path.dirname(sys.argv[0]) And then when I defined my local variables I went with; VariableName = pathname + "/Folder/File" -Jordan
... View more
05-05-2010
07:33 AM
|
0
|
0
|
901
|
POST
|
This is probably a pretty basic question, but how do you set relative paths in Python? The script sits in a folder called SDE. It is run from a toolbox also located in the SDE folder. It needs to recognize data within folders that are also located in the SDE folder (horizontal to the script in the directory tree). Any Suggestions? I've tried just about every combination of ../ and ./ in front of filepaths in the script to no avail. Maybe it's not that easy?? Thanks, -Jordan
... View more
05-04-2010
02:30 PM
|
1
|
3
|
10048
|
POST
|
Thanks Andrew. I've never worked with ArcObjects or programming, but I suppose there's no better time than the present...
... View more
04-27-2010
11:22 AM
|
0
|
0
|
234
|
POST
|
Hi All, I'm trying to create a script in modelbuilder to automate replication through check in/check out. What I'm struggling with is how to bring newly created feature classes into the loop. The main problem I'm running into is being able to select all feature classes in the SDE to bring into the checkout version. The create replica tool lets me add all the existing feature classes in the SDE to the checkout file geodatabase, but if a new one is created in there it will not be included. Also, if a new feature class is created in the checked out file geodatabase, it is not brought into the SDE during synchronization for some reason. I've included the export, compare, and import replica schema tools in the model, which apparently only deal with attribute schema and not new feature classes. I've attached the model for you to take a look at. If anyone has any ideas I would be VERY appreciative. Thank you! Jordan Hoaglund GIS Specialist National Park Service U.S. Department of the Interior
... View more
04-26-2010
11:16 AM
|
0
|
2
|
368
|
Title | Kudos | Posted |
---|---|---|
1 | 05-04-2010 02:30 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|