Strange error with vla-addobject when creating mleaderstyle

Strange error with vla-addobject when creating mleaderstyle

dbroad
Mentor Mentor
548 Views
3 Replies
Message 1 of 4

Strange error with vla-addobject when creating mleaderstyle

dbroad
Mentor
Mentor

This problem happens to me on one computer (Windows 10) with AutoCAD 2017 MEP but works with AutoCAD 2019 and it works fine on another computer (Windows 7) with either AutoCAD 2019 MEP or AutoCAD 2017 MEP.  The error is: Automation Error. Description was not provided.

(setq dicts (vlax-ename->vla-object (namedobjdict))
      mlsd (vla-item dicts "ACAD_MLEADERSTYLE"))
(if (vl-catch-all-error-p(vl-catch-all-apply 'vla-item (list mlsd "Test")))
(setq newmlstyle (vla-addobject mlsd "Test" "AcDbMleaderStyle")))
Architect, Registered NC, VA, SC, & GA.
0 Likes
Accepted solutions (1)
549 Views
3 Replies
Replies (3)
Message 2 of 4

Scottu2
Advocate
Advocate
Perhaps the vlax-ename->vla-object active-x command is missing.
If so, the registry entry was lost.

https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Error-...
Message 3 of 4

dbroad
Mentor
Mentor
Accepted solution

Thanks.  That link seemed helpful.   I kept working on it. Previously I did several repair installs.  I just did a complete reinstall and it seemed to fix the problem.  So for now the problem has been fixed.  Wierd. Don't how that one feature got messed up. We'll see how long it lasts.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 4 of 4

john.uhden
Mentor
Mentor

Good work, Doug.

You deserved that acceptance.  😁

John F. Uhden

0 Likes