CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE

CAD tip CAD tip # 7360:

Question

CAD 
 %  platform  category 
A
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   24363×  
   
this tip shared by ARKANCE experts applies to: AutoCAD ·

See also:
Tip 14946:Dimensioning the arc length and radius at the same time.
Tip 14944:How to import or export an SVG file in AutoCAD? (SVGimport/SVGexport)
Tip 14935:"Mechanical" osnap modes in AutoCAD Mechanical.
Tip 14911:Using symbolic variables to enter repeated values in AutoCAD.
Tip 14889:Unfolding of general polygonal 3D meshes (mesh unfolder).


Back    All CAD Tips



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
  





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