CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.092.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 12131:

Question

CAD 
 %  platform  category 
A
AutoCAD has suddenly started to report an error on proven LISP programs: "no function definition: VLAX-ENAME->VLA-OBJECT" or on any other VLAX- or VLR- function call (e.g. VLR-MOUSE-REACTOR).

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" and "##" with the version available in your AutoCAD folder - e.g. "vl16.tlb"):

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{A4081F53-974E-479E-A26E-E6DE9A5B2489}]
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{A4081F53-974E-479E-A26E-E6DE9A5B2489}\1.0]
    @="Visual Lisp ActiveX module"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{A4081F53-974E-479E-A26E-E6DE9A5B2489}\1.0\0]
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{A4081F53-974E-479E-A26E-E6DE9A5B2489}\1.0\0\win32]
    @="vl##.tlb"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{A4081F53-974E-479E-A26E-E6DE9A5B2489}\1.0\0\win64]
    @="C:\\Program Files\\Autodesk\\AutoCAD 20XX\\vl##.tlb"
    

You can also download the .REG file VlrLspFix.reg, edit the name of your AutoCAD folder in it and then "run" it by double-click.

ACADCivilMapACADE
100% *CAD
2.2.2019    19776×   Expert

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
  



Featuring:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D More info


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