CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 6415

CAD tip CAD tip # 12131:

Question CAD 
 %  platform  category 
Q - question

Error: no function definition: VLAX-ENAME->VLA-OBJECT or VLAX-VLA-OBJECT->ENAME

A - answer AutoCAD has suddenly started to report an error on proven LISP programs: "no function definition: VLAX-ENAME->VLA-OBJECT" or on any other VLAX- function call.

This may have several causes - from the most frequent:

  1. A missing call to the function loading the "VLAX" support for accessing the ActiveX programming interface - i.e. (vl-load-com) - try to type it on the AutoCAD command line and retry your LISP program.
  2. You are trying to run your LISP program in AutoCAD for Mac - but this version doesn't support the Windows-specific (ActiveX) VLAX functions.
  3. A damaged or missing or antivirus-blocked file adding the VL-functions, i.e. VL.ARX - should be in the folder C:\Program Files\Autodesk\AutoCAD 20XX\
  4. A missing reference to the class type library. Check these Registry settings using the Regedit application (replace "XX" with your AutoCAD version - e.g. "19" - "vlx19.tlb"):

    @="Visual Lisp ActiveX module"
    @="C:\\Program Files\\Autodesk\\AutoCAD 20XX\\vlXX.tlb"
100% *  CAD 
2.2.2019    16243×  
Prices - CAD eShop:
applies to: AutoCAD · Civil 3D · AutoCAD Map 3D ·

See also:
Tip 13822:Fast layer visibility toggle ON/OFF.
Tip 13737:Formatting leading zeros in AutoCAD fields (and automatic field update).
Tip 13529:How to redefine the behavior of a standard AutoCAD command?
Tip 12210:How to erase a specific object type in all DWG layouts?
Tip 11996:How to rotate selected blocks by the angle of an existing block?

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   

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