Author Topic: Options - Search Paths  (Read 4657 times)

0 Members and 1 Guest are viewing this topic.

jonesy

  • SuperMod
  • Seagull
  • Posts: 15568
Options - Search Paths
« 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
Thanks for explaining the word "many" to me, it means a lot.

whdjr

  • Guest
Options - Search Paths
« Reply #1 on: January 25, 2005, 10:19:11 AM »
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.

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Options - Search Paths
« Reply #2 on: January 25, 2005, 10:29:31 AM »
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

My lisp file named "LoadSupportPaths.lsp" can be downloaded HERE
(Mine code below)
Code: [Select]
;;; 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
Code: [Select]
(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")


ronjonp

  • Needs a day job
  • Posts: 7529
Options - Search Paths
« Reply #3 on: January 25, 2005, 10:31:40 AM »
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:

Code: [Select]
[HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R16.1\ACAD-301:409\Profiles\<<Unnamed Profile>>\General]



Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

jonesy

  • SuperMod
  • Seagull
  • Posts: 15568
Options - Search Paths
« Reply #4 on: January 26, 2005, 06:23:32 AM »
Quote from: whdjr
1.  Yes you have to list each folder independently.
 

Ok thats not a problem.
Quote from: whdjr

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
Thanks for explaining the word "many" to me, it means a lot.

jonesy

  • SuperMod
  • Seagull
  • Posts: 15568
Options - Search Paths
« Reply #5 on: January 26, 2005, 06:27:18 AM »
Quote from: Dommy2Hotty
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
Thanks for explaining the word "many" to me, it means a lot.

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Options - Search Paths
« Reply #6 on: January 26, 2005, 10:54:59 AM »
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:
Code: [Select]
[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.

Kate M

  • Guest
Options - Search Paths
« Reply #7 on: January 26, 2005, 12:44:42 PM »
Quote from: jonesy
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.

whdjr

  • Guest
Options - Search Paths
« Reply #8 on: January 26, 2005, 01:45:05 PM »
Quote from: jonesy
Will I have to set up a profile in each version?

Yes, except for LT as Kate M pointed out.

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Options - Search Paths
« Reply #9 on: January 26, 2005, 02:39:53 PM »

t-bear

  • Guest
Options - Search Paths
« Reply #10 on: January 26, 2005, 03:50:20 PM »
So now you can manage them profiles....you don't have!  That's cool!
Leave it to D2H ....... nice find amigo.

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Options - Search Paths
« Reply #11 on: January 26, 2005, 04:11:38 PM »
Quote from: t-bear
So now you can manage them profiles....you don't have!  That's cool!

 :?: confused

t-bear

  • Guest
Options - Search Paths
« Reply #12 on: January 26, 2005, 04:33:55 PM »
Kate wrote:
Quote
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:

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Options - Search Paths
« Reply #13 on: January 26, 2005, 05:17:55 PM »
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...

ML

  • Guest
Options - Search Paths
« Reply #14 on: January 26, 2005, 07:03:02 PM »
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.