Jump to content

Updating autocad settings


Guest vinnypoon

Recommended Posts

  • 3 weeks later...
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)

Link to comment
Share on other sites

  • 4 weeks later...

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: [url="http://www.jtbworld.com"]www.jtbworld.com[/url] / [url]http://jtbworld.vze.com[/url]
;;; E-mail: [email="info@jtbworld.com"]info@jtbworld.com[/email] / [email="jtbworld@hotmail.com"]jtbworld@hotmail.com[/email]
;;;
;;; 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\Bitmaps-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:

FilePulldownMenu.jpg

Link to comment
Share on other sites

  • 1 year later...

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?

Link to comment
Share on other sites

  • 2 years later...

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.

Link to comment
Share on other sites

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))))

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...