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

CAD tip CAD tip # 7360:

Question CAD 
 %  platform  category 
Q - question

How to set a LISP variable in AutoCAD?

A - answer Many LISP utilities, including LISP utilities by CAD Studio, work with parameters preset through standard variables.

If you need to set an integer, real or string value to a given LISP variable, use the AutoLISP function (setq) - in the format (setq variable value). Just type in this function to your AutoCAD command line, add it to your menu macro, or add it to your automatically loaded file ACAD.LSP, ACADDOC.LSP or mymenu.MNL - see examples:

(setq insertc:Inc 0.1)
(setq myFilePath "C:\\TEMP")
(setq apdf:PC3name "DWG To PDF.pc3")
ACAD
100% *  CAD 
13.5.2010    9559×  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 11914:Maze generator for AutoCAD.
Tip 11888:Dynamic label of area and perimeter - DynArea.
Tip 11847:Automatic UCS aligned with the current View (UCSauto switch).
Tip 11780:How to rename layouts by a specific attribute of the title block?
Tip 11751:toMulti converts polylines to multi-lines driven by a definition table.


Back   All CAD Tips All CAD tips&tricks

Background image/photo in a Revit rendering. « | » Double-click hatch edit in AutoCAD 2011.

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:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D 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