TheSwamp
CAD Forums => CAD General => Topic started by: jonesy on January 25, 2005, 09:32:05 AM
-
I am about to start configuring the search paths for all the cad users here. I have a couple of questions before I create myself too much work.
1. If my plot styles are on j/cad/plotstyles I would map there.
All our standardisation is filed under j/cad/??? (with many subdirs). My question is - do I have to specify each of these subdirectories in the search path, or can I just specify j/cad
2. Is there a quick way of rolling out this set up to all the computers in the office, or am I going to have to go to each puter and set them up?
Thanks in advance
Tracey
-
1. Yes you have to list each folder independently.
2. Once you get one user set up with all the customization, then you can save that profile and export it to your server. You can then import it into each of the other users workstations. Remember to make it current after you import the profile.
-
I have modified a lisp file that loads support paths to suite my needs. I also added the call to a script file at the end of the lisp that I already made.
Original lisp file named "SupportPaths.lsp" can be downloaded HERE (http://www.theswamp.org/lilly_pond/dommy2hotty/lisp/SupportPaths.LSP?nossi=1)
My lisp file named "LoadSupportPaths.lsp" can be downloaded HERE (http://www.theswamp.org/lilly_pond/dommy2hotty/lisp/LoadSupportPaths.lsp?nossi=1)
(Mine code below)
;;; Copyright (C) 1997-2003 JTB World, All Rights Reserved
;;; Website: www.jtbworld.com / http://jtbworld.vze.com
;;; E-mail: info@jtbworld.com / jtbworld@hotmail.com
;;;
;;; Save and loads support paths to a text file
;;;
;;; Change the path as wished
;;;
;;;MODIFIED 01.05.05 BY:
;;;Dominic Cesare for Russ+Carlson Architecture
;;;Dommy2Hotty@aol.com
(defun C:loadSupportPaths (/ files f)
(vl-load-com)
(setq files (vla-get-files (vla-get-preferences (vlax-get-acad-object))))
(setq f (open "Z:\\Standards\\StandardPaths.txt" "r"))
(setq paths (read-line f))
(close f)
(setq docsupport (strcat "C:\\Documents and Settings\\" (getvar "loginname") "\\Application Data\\Autodesk\\ADT 2005\\enu\\Support"))
(setq express "C:\\Program Files\\Autodesk Architectural Desktop 2005\\Express")
(setq progsupport "C:\\Program Files\\Autodesk Architectural Desktop 2005\\Support")
(setq paths (strcat paths ";" docsupport ";" express ";" progsupport))
(vla-put-supportpath files paths)
(command "script" "Z:\\Scripts\\DrawingUtilities\\SupportPaths.scr")
(princ)
)
Script File can be downloaded HERE (http://www.theswamp.org/lilly_pond/dommy2hotty/lisp/SupportPaths.scr?nossi=1)
(setenv "ACADDRV" "Z:\\Drv")
(setenv "PrinterConfigDir" "Z:\\Plotters")
(setenv "PrinterStyleSheetDir" "Z:\\Plot Styles")
(setenv "SaveFilePath" "C:\\AutoCAD_Custom\\AutoSaves")
(setenv "TemplatePath" "Z:\\Template")
(setenv "LogFilePath" "C:\\AutoCAD_Custom\\Logs")
(setenv "TempDirectory" "C:\\AutoCAD_Custom\\Temp")
(setvar "XLOADPATH" "C:\\AutoCAD_Custom\\Temp")
(setenv "AVEMAPS" "Z:\\Textures")
(setvar "fontalt" "architxt.shx")
-
I think support paths do not look into sub dirs so you would have to map them all (I think). The ctb and pc3 paths may look into sub dirs.
Have a look here for ways to add support paths.
http://theswamp.org/phpBB2/viewtopic.php?p=15541#15541
If all your users have the same profile name and are using the same version of CAD you could add the paths to your machine and then export the info from the registry. This way adding the paths would be as easy as double clicking and merging the info. Word of advice when doing it this way....the registry key is overwritten not appended to so if one of your users has set up some custom paths, they will be lost.
This is where the paths are stored:
[HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R16.1\ACAD-301:409\Profiles\<<Unnamed Profile>>\General]
Ron
-
1. Yes you have to list each folder independently.
Ok thats not a problem.
2. Once you get one user set up with all the customization, then you can save that profile and export it to your server. You can then import it into each of the other users workstations. Remember to make it current after you import the profile.
Currently there are ADT 3.3, AutoCAD 2002 and LT 2002 in our office. In a couple of weeks there will be 2005 added to the mix too. Will I have to set up a profile in each version?
Thanks for your thoughts
Tracey
-
I have modified a lisp file that loads support paths to suite my needs. I also added the call to a script file at the end of the lisp that I already made.
Am I being dense here, how do you get that to work when booting AutoCAD, is it added to the startup routine?
Thanks for your input
Tracey
-
You could add it to acad.lsp (you'll have to create, most likely). I have integrated pulldowns within AutoCAD's base menu. I made this in the "FILE" pulldown:
[Reload Environment]^C^C^CMENU;"C:/AutoCAD_Custom/Menusupport/ACAD-RussCarlson.mnu";+
(setq express (strcat "C:/Documents and Settings/" (getvar "loginname") "/Application Data/Autodesk/ADT 2005/enu/Support/acetmain.mnu"));+
(command "menuload" express);+
(menucmd "p8=-");+
(menucmd "p11=+EXPRESS.pop1");+
(command "menuload" "C:/AutoCAD_Custom/menusupport/RussCarlsonPartial.mnu");+
(menucmd "p2=+RussCarlsonPartial.Plotting");+
(menucmd "p9=+RussCarlsonPartial.TextMain");+
(menucmd "p12=+RussCarlsonPartial.Russ+Carlson");+
(menucmd "p13=+RussCarlsonPartial.Andersen");+
(menucmd "p14=+RussCarlsonPartial.Blocks");+
(menucmd "p15=+RussCarlsonPartial.Hatches");+
(command "menuload" "C:/AutoCAD_Custom/menusupport/Wyndham.mnu");(menucmd "p16=+Wyndham.WyndhamPD");(menucmd "p17=+Wyndham.Update");+
(command "menuload" "C:/AutoCAD_Custom/menusupport/CustomToolbars.mnu");+
(if(not c:LoadSupportPaths)(load "Z:/AutoLISP/LoadSupportPaths.lsp"));LoadSupportPaths;
The last line runs the Lisp file, and the Lisp file runs the Script file.
-
Currently there are ADT 3.3, AutoCAD 2002 and LT 2002 in our office.
There are no profiles in LT, so you'll have to do those individually.
-
Will I have to set up a profile in each version?
Yes, except for LT as Kate M pointed out.
-
Found LT -Profiles-Manager (http://www.lt-extender.com/englisch/inhalte/lt-profiles/content.htm)[/u]
-
So now you can manage them profiles....you don't have! That's cool!
Leave it to D2H ....... nice find amigo.
-
So now you can manage them profiles....you don't have! That's cool!
:?: confused
-
Kate wrote:
There are no profiles in LT, so you'll have to do those individually.
and you found an LT profile manager!
That's what I meant...... Didn't want to corn-fuze you......sorry. :oops: :roll: :wink:
-
Gotcha...I didn't actually read about it, just saw LT and Profile and copy and pasted...thought maybe I posted a link to some crap....lol...
-
I created A VBA Module that will load all of your suport paths for you as well.
All you do is type in the paths once into the module, after that, re creating them is a click a way.
Saving your profile out periodically is a good idea as well. Profiles will save all customization as far as I know.
-
This is really useful. Do you know the codes to change the qnew path?
I have modified a lisp file that loads support paths to suite my needs. I also added the call to a script file at the end of the lisp that I already made.
Original lisp file named "SupportPaths.lsp" can be downloaded HERE (http://www.theswamp.org/lilly_pond/dommy2hotty/lisp/SupportPaths.LSP?nossi=1)
My lisp file named "LoadSupportPaths.lsp" can be downloaded HERE (http://www.theswamp.org/lilly_pond/dommy2hotty/lisp/LoadSupportPaths.lsp?nossi=1)
(Mine code below)
;;; Copyright (C) 1997-2003 JTB World, All Rights Reserved
;;; Website: www.jtbworld.com / http://jtbworld.vze.com
;;; E-mail: info@jtbworld.com / jtbworld@hotmail.com
;;;
;;; Save and loads support paths to a text file
;;;
;;; Change the path as wished
;;;
;;;MODIFIED 01.05.05 BY:
;;;Dominic Cesare for Russ+Carlson Architecture
;;;Dommy2Hotty@aol.com
(defun C:loadSupportPaths (/ files f)
(vl-load-com)
(setq files (vla-get-files (vla-get-preferences (vlax-get-acad-object))))
(setq f (open "Z:\\Standards\\StandardPaths.txt" "r"))
(setq paths (read-line f))
(close f)
(setq docsupport (strcat "C:\\Documents and Settings\\" (getvar "loginname") "\\Application Data\\Autodesk\\ADT 2005\\enu\\Support"))
(setq express "C:\\Program Files\\Autodesk Architectural Desktop 2005\\Express")
(setq progsupport "C:\\Program Files\\Autodesk Architectural Desktop 2005\\Support")
(setq paths (strcat paths ";" docsupport ";" express ";" progsupport))
(vla-put-supportpath files paths)
(command "script" "Z:\\Scripts\\DrawingUtilities\\SupportPaths.scr")
(princ)
)
Script File can be downloaded HERE (http://www.theswamp.org/lilly_pond/dommy2hotty/lisp/SupportPaths.scr?nossi=1)
(setenv "ACADDRV" "Z:\\Drv")
(setenv "PrinterConfigDir" "Z:\\Plotters")
(setenv "PrinterStyleSheetDir" "Z:\\Plot Styles")
(setenv "SaveFilePath" "C:\\AutoCAD_Custom\\AutoSaves")
(setenv "TemplatePath" "Z:\\Template")
(setenv "LogFilePath" "C:\\AutoCAD_Custom\\Logs")
(setenv "TempDirectory" "C:\\AutoCAD_Custom\\Temp")
(setvar "XLOADPATH" "C:\\AutoCAD_Custom\\Temp")
(setenv "AVEMAPS" "Z:\\Textures")
(setvar "fontalt" "architxt.shx")
-
while the save support paths function is very very useful.
is there a way to alter this lisp routine so that it adds support paths rather than replaces the ones that are there?
-
Try this one:
(defun C:addpaths (/ files expaths newpath)
(vl-load-com)
(setq files (vla-get-files (vla-get-preferences (vlax-get-acad-object)))
expaths (vla-get-supportpath files)
)
(setq newpath (strcat
expaths
";"
"C:\\ADD YOUR PATH\\HERE"
";"
"C:\\ADD YOUR PATH\\HERE"
";"
"C:\\ADD YOUR PATH\\HERE"
";"
"C:\\ADD YOUR PATH\\HERE"
)
)
(vla-put-supportpath files newpath)
(princ)
)
Ron
-
Heres another question for you.I realise that each foler you want to add to your search path has to be referenced in a different support path,but what is the maximum number of paths that you should refence with encountering problems?Also does the length of the support file path effect the performance ?I have a number of folders referenced for my lisps,fonts,drawings,custom bitmaps etc.
-
Hi
Check out the following Technical Document on the Autodesk web site under the Knowledge Base section -
ID: TS48958 - Support file problems when combined support path for Windows® and AutoCAD® software is too long (http://usa.autodesk.com/adsk/servlet/ps/item?id=2884947&linkID=2475323&siteID=123112)
Have a good one, Mike