View Full Version : Import Project Support Search Path, not via an ARG file
Ms. Serene
2004-09-30, 07:26 PM
Is there a way to import a Project Support Search Path with out importing the full Profile? I am trying to find my department a easier way to use xrefs and the best way I can figure are the search paths. However if importing a Profile is going to change things like display color they won't go for it. I am currently using 2000i so if anyone knows anything that would be helpful please let me know.
mjfarrell
2004-09-30, 07:48 PM
how about using relative paths for those XREFS?
Or add the standard project search paths to everyones
profile.arg file through the network?
Ed Jobe
2004-09-30, 07:51 PM
You can do it using vba or lisp. I can write one later.
Mike.Perry
2004-09-30, 08:58 PM
Hi
Might want to read up on the system variable ProjectName...
ID: TS69565 - Set up PROJECT feature (http://usa.autodesk.com/adsk/servlet/ps/item?siteID=123112&id=2867918&linkID=2475323)
+
The following link should prove useful...
AutoCAD Setup by AfraLISP (http://www.afralisp.net/vl/acadset.htm)
Have a good one, Mike
Ed Jobe
2004-09-30, 10:07 PM
Kenny's program would need a bit of modification. Here is a lisp that takes the direct route. It edits the SupportPath environment variable for the current profile. Save the code as a lisp file. Edit the paths to suit, as per the directions in the file's comments. Drag the file from Explorer to an open acad session and type "SetupSupportPaths". If you want to update other profiles, make sure that the paths are appropriate for that profile and then switch profiles and run the command again.
(defun C:SetupSupportPaths (/ AcadFiles SupportPath)
(vl-load-com)
;; retrieve the AcadPreferencesFiles object
(setq AcadFiles
(vla-get-files
(vla-get-preferences
(vlax-get-Acad-Object)
)
)
)
;; Set up the Support paths.
;; Use double backslashes for each directory backslash
;; and separate folders with a semicolon.
(setq SupportPath
(strcat
"C:\\Autodesk\\Map2000i\\support"
";"
"C:\\Autodesk\\Map2000i\\fonts"
";"
"C:\\Autodesk\\Map2000i\\help"
";"
"C:\\Autodesk\\Map2000i\\express"
";"
"C:\\Program Files\\Common Files\\Autodesk Shared\\GIS\\ImportExport\\1.0"
)
)
;; Set the SupportPath Property
(vlax-put-property AcadFiles "SupportPath" SupportPath)
(princ)
)
;;defun
rcroke
2006-09-19, 11:51 AM
This isn't working for me.
I need to ADD a single support path to about 47 systems.
The problem is that the lisp shown does not EDIT existing paths, it redifines all paths in your current profile.
For us, each user has a couple paths in the personal documents and settings directory (roamablerootprefix) and it varies depending on if they use ABS or ADT
This isn't working for me.
I need to ADD a single support path to about 47 systems.
The problem is that the lisp shown does not EDIT existing paths, it redifines all paths in your current profile.
For us, each user has a couple paths in the personal documents and settings directory (roamablerootprefix) and it varies depending on if they use ABS or ADT
The link Mike posted for AfraLisp is broken since their site has moved. Try their new site (http://www.afralisp.net/vl/acadset.htm).
Powered by vBulletin® Version 4.1.11 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.