CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 5985 
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 7468:

Question CAD 
 %  platform  category 
Q - question

How to set a variable in AutoCAD runstring (desktop icon)?

A - answer Prepare a script file (the .SCR extension) where you set the requested system variable. This file is a plain text file with a single line - e.g. to "myscript.scr" insert:

HPNAME myhatch

Save this script to the AutoCAD program or support folder.

Then add the string /b myscript.scr to the AutoCAD runstring (the desktop icon, right-click to Properties > Shortcut > Target) -- this will run your script file automatically when you start AutoCAD - e.g.:

"C:\Program Files\Autodesk\AutoCAD LT 2011\acadlt.exe" /b myscript.scr

ACADLT
100% *  CAD 
23.7.2010    4939×  
Comments   Tell a friend
applies to: AutoCAD · AutoCAD LT ·

See also:
Tip 11634:Which CAD/BIM products are supported by the visual programming tool Dynamo?
Tip 11604:How to set plot transparency for all layouts in a DWG?
Tip 11570:How to create an Inventor drawing from a photo?
Tip 11511:Assigning elevations to 2D contours (isolines).
Tip 11494:Entering decimal values using fractions in CAD applications.


Back   All CAD Tips All CAD tips&tricks

Materials missing after import of FBX file into 3ds Max. « | » How to change floor level in AutoCAD Architecture?

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info


Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist