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

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    8607×  
Prices - CAD eShop:
applies to: AutoCAD · Civil 3D · AutoCAD Map 3D ·

See also:
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?
Tip 11914:Maze generator for AutoCAD.
Tip 11780:How to rename layouts by a specific attribute of the title block?
Tip 11604:How to set plot transparency for all layouts in a DWG?

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   

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.