Accoes Posted March 28, 2011 Posted March 28, 2011 Command: (setq sset (vlax-ename->vla-object sset)) *Cancel* Automation Error. Description was not provided. Quote
fixo Posted March 28, 2011 Posted March 28, 2011 Try this out (vl-load-com) (setq sset (ssget)) (setq vla-sset (vla-get-activeselectionset(vla-get-activedocument (vlax-get-acad-object)))) (vlax-for obj vla-sset ;;;do your work with every object (obj) in selection here ) Quote
alanjt Posted March 28, 2011 Posted March 28, 2011 vlax-ename->vla-object must be fed ONLY a valid ENAME and will not work with anything else. Hence the name. Quote
Lee Mac Posted March 28, 2011 Posted March 28, 2011 Follow the directions explained in this tutorial to use the Visual LISP IDE to get information about how to use a function, including the arguments and returns for that function. Quote
Accoes Posted March 28, 2011 Author Posted March 28, 2011 (edited) Let me explain a little.Our soft comes with a .dll for properties in Autocad.I wanted to see if I unloaded this ,how much of the object properties I could see with a dump.The dump works as long as the .dll is loaded. I guess what I'm asking is if this .dll is not loaded is the object carrying these properties still? I cannot tell due to the ename stuff. Edited March 28, 2011 by Accoes added question Quote
Lee Mac Posted March 28, 2011 Posted March 28, 2011 Look into the vlax-dump-object function, or see here and for DXF here. Quote
Accoes Posted March 28, 2011 Author Posted March 28, 2011 (edited) I was using your (dump) Lisp Lee.If you notice it was asking for the ename and errored.Dxf ? The dxf version gives me the same results as (entget(car(entsel))).The vlax-dump provides additional info . Edited March 28, 2011 by Accoes Quote
Lee Mac Posted March 28, 2011 Posted March 28, 2011 I was using your (dump) Lisp Lee.If you notice it was asking for the ename and errored.Dxf ? My function: 'LMDump' will take a VLA-Object, Entity name, or DXF Association List and print the ActiveX Properties and Methods associated with the object in question. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.