View Full Version : Updating autocad settings
vinnypoon
27th Jan 2005, 04:46 pm
Is there a way to write a lisp to automatically update the autocad settings (example: file search paths, qnew location.etc.) on startup? Thanks
Mr T
11th Feb 2005, 08:01 pm
Is there a way to write a lisp to automatically update the autocad settings (example: file search paths, qnew location.etc.) on startup? Thanks
I presume you have explored how to setup and use PROFILES. They
are found in the command OPTIONS. :shock:
Nick (me nospeeky de lispy)
fade2blackened
11th Mar 2005, 12:28 pm
REINIT command?
Dommy2Hotty
11th Mar 2005, 05:03 pm
Here's how I do mine...the following is from the "FILE" pulldown:
Resetting of system variables:
[Reset System Variables]^C^C^C_script;"C:/AutoCAD_Custom/Scripts/ResetSystemVariables.scr";
ResetSystemVariables.scr contents
aperture 3
cmddia 1
cursorsize 100
dragmode Auto
dragp1 10
dragp2 25
filedia 1
gridmode 0
gripsize 5
griptips 1
highlight 1
hpassoc 1
mbuttonpan 1
menuctl 1
menuecho 0
orthomode 1
osmode 255
osnaphatch 0
peditaccept 1
pickadd 1
pickauto 1
pickbox 3
pickdrag 0
pickfirst 1
pickstyle 1
polarang 90
polarmode 2
rememberfolders 0
shortcutmenu 11
snapmode 0
snapstyl 0
snaptype 0
textsize 4.5
trackpath 0
ucsicon Off
Resetting Support Paths:
[Load Support Paths]^C^C^C(if (not c:LoadSupportPaths)(load "Z:/AutoLISP/LoadSupportPaths.lsp"));LoadSupportPaths;
;;; 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)
)
StandardPaths.txt contents (called from the third line in the "LoadSupportPaths.lsp")
C:\AutoCAD_Custom\Bitmaps;C:\AutoCAD_Custom\Bitmap s-Custom;C:\AutoCAD_Custom\Configs;C:\AutoCAD_Custom \Menusupport;Z:\Andersen;Z:\Andersen\200 Series;Z:\AutoLISP;Z:\Blocks;Z:\Fonts;Z:\Patterns; Z:\Slides
SupportPaths.scr (called from the last line in the "LoadSupportPaths.lsp")
(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")
Here's a picture of what my File pulldown looks like to clarify:
http://www.theswamp.org/screens/Dommy2Hotty/FilePulldownMenu.jpg
Anghel132
24th Oct 2006, 03:28 am
We've set up a network folder containing client plot styles. We placed it up there for everyone involved in that department using AUTOCAD to be able to use and add to those styles as needed. Only thing is, the plot style search path has to be set manually for every new user who logs into the workstation and uses Autocad even if another AUTOCAD user has already set the search path for his profile.
My question is -> will this script you've shown be able to set it up so every user who logs in and uses AUTOCAD will have those paths set up already, regardless if they haven't logged in and set it up manually before?
BIGAL
31st May 2009, 07:50 am
Hi Dommy2 hotty hope you can help we need a simple way of setting up multiple users we dont need full blown profiles etc just simple Config set up stuff . undertand using SETENV but how do I find all the variable names ? In particular for FILES aection of a CONFIG command. We are now setting up 2010 around 20 users.
BIGAL
3rd Jun 2009, 12:35 am
Hi again Dommy2hotty could you please paste a copy of your
"Z:\\Standards\\StandardPaths.txt"
or can some one tell me how to print out the "Files" answer
(setq files (vla-get-files (vla-get-preferences (vlax-get-acad-object))))
Powered by vBulletin™ Version 4.1.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.