CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 4163 

CAD tip CAD tip # 4170:

Question CAD 
 %  platform  category 
Q - question

What is the difference between the (command) and (vl-cmdf) LISP functions?

A - answer 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).
100% *  CAD 
17.12.2004    8378x  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 11076:Reading 3D point matrix from a CSV file.
Tip 11054:Difference volume (3D solid) between two TIN surfaces (sets of coordinates)
Tip 11025:How to create an axis of two curves? (average curve)
Tip 11017:How to select a DWG object by its internal ID, its "handle"?
Tip 10955:Evaluate VBScript functions from AutoLISP.

Back   All CAD Tips All CAD tips&tricks

Which version of Inventor has saved the file? « | » Does AutoCAD support multi-part solid bodies?

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   

Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools 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.