|Page (1) of 1 - 11/29/01||email article||print page|
AutoLISPIncorporating Standards on the Corporate Network
Trigger File: Modify the file called acad2000.lsp or create this file (if it does not exist) in the Support directory, add the line instruction:
just before of the expression:
;; Silent load.
in the acad2000.lsp file.
Program File: Create a file with the same name in the line added in the acad2000.lsp file (Example: COMPANY_NAME.lsp)
Put the following code in this new file:
(defun c:COMPANY_NAME ()
(setvar "FILEDIA" 0)
(command "_VBALOAD" "Company_Profile.dvb")
(command "_-VBARUN" "ThisDrawing.Profile")
(setvar "FILEDIA" 1)
Loader File: Put the file Acad.dvb in the Acad2000 directory (later you will need customize this file)
To edit this file, open AutoCAD, go to menu
Choose ACADProjects=>AutoCAD Objects=>This Drawing.
In the code you can edit messages boxes alerts, your company profile file name and path, and the profile name in the AutoCAD profile dialog box list.
THE PASSWORD ON THE ACAD.DVB FILE IS: 12345 you can change it later to protect the standards.
Profile File: Just configure AutoCAD like your company standards in the AutoCAD Options dialog box (Tools=>Options), you can add some search paths on servers paths or mapped network drives in order to do available: company menus, company toolbars, lisp programs, fonts, drivers, plotters, plotter styles, etc., to every user on the company network. (An universe of possibilities)
Export these preferences to a file .arg (Tools>Options=>Profiles=>Export) and put this .arg file in a common directory on the net, available for all user on the company network.
In every client, copy the files : acad2000.lsp, Company_Name.lsp, on the AutoCAD Support directory, and copy the Acad.dvb file in the Acad2000 directory.
You can perform this job by a copy batch file (Example: Custom_Acad2K.bat )
ABRACADABRA! You can control all AutoCAD standards on the network and can update all at the same time.
Every user on the network, just needs to run the command: COMPANY_NAME (in the command prompt) in order to load the standard company profile, and any program you have put in the search paths.
Click here to download.
Source:Digital Media Online. All Rights Reserved