0 Members and 1 Guest are viewing this topic.
(equal (vla-get-IsXref Blk) :vlax-false) (equal (vla-get-IsLayout Blk) :vlax-false)
Tim,I stand corrected, Nice example. Using plain lisp would be messy at best.
When I try to run this lisp, i get an error message; error: bad argument type: VLA-OBJECT nilWhat am I doing wrong. I've typed in (vl-load-com) first but it makes no difference.
Andy,Just a typo in the latest routine.Change theses two lines:Code: [Select] (equal (vla-get-IsXref Blk) :vlax-false) (equal (vla-get-IsLayout Blk) :vlax-false)Needs to be Blk and not Obj.Also you will need a (regen) to see the results. At least I did.
(vla-Regen ActDoc acActiveViewport)