Tutorial: Page (1) of 1 - 11/29/01 Email this story to a friend. email article Print this page (Article printing at MyDmn.com).print page facebook

AutoLISP

Incorporating Standards on the Corporate Network By Johann Espejo
These provide an AutoCAD 2000 solution to incorporate standards to every user on corporate NetWorks or LANs.

Client Parts


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:

(LOAD "COMPANY_NAME.lsp")

just before of the expression:

;; Silent load.
(princ)

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")
(command "_VBAUNLOAD")
(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

Tools=>Macro=>VisualBasic Editor.
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.

Server Parts

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.

Installing:

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.

Page: 1


Related Keywords:

HOT THREADS on DMN Forums
Content-type: text/html  Rss  Add to Google Reader or
Homepage    Add to My AOL  Add to Excite MIX  Subscribe in
NewsGator Online 
Real-Time - what users are saying - Right Now!

Our Privacy Policy --- @ Copyright, 2015 Digital Media Online, All Rights Reserved