CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 5645

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).
ACAD
100% *  CAD 
17.12.2004    12403×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 14056:How to move blocks in the Z axis to the terrain model surface?
Tip 14027:3D heart from the heart.
Tip 14017:Voronoi diagrams in AutoCAD.
Tip 13977:How to publish a PDF to the same folder as a DWG drawing in AutoCAD?
Tip 13938:ModDXF - utility for bulk modification/display of internal DXF properties in DWG entities.


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 glossary   



Featuring:
Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info


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