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 # 4170:

Question

CAD 
 %  platform  category 
A
These AutoCAD-command-invoking functions are almost identical. The newer (vl-cmdf) VisualLISP function verifies the parameters passed to AutoCAD and invokes the command only if the arguments are valid.

Compare e.g.:

(setq p (getpoint))
(vl-cmdf "_ID" p)
(vl-cmdf "_ID" "dummy")
(command "_ID" "dummy")
(vl-cmdf) returns T if the command was invoked successfully (nil otherwise).
ACAD
100% *CAD
17.12.2004   14264×  
   
this tip shared by ARKANCE experts applies to: AutoCAD ·

See also:
Tip 14991:Changing the order of rows in a table - sorting tables in AutoCAD.
Tip 14989:How to draw a line from its midpoint in AutoCAD?
Tip 14962:How do you connect two offset lines with an ogee curve, double-arc wave?
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)


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