Community
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
"mister_nick" wrote in messageAs
href="news:6170792@discussion.autodesk.com">news:6170792@discussion.autodesk.com...
a further example, using the routine set out in this post (suitably altered to
work with my xref/block)
href="http://discussion.autodesk.com/forums/thread.jspa?messageID=6126219%EF%BF%BD"
target=_ne...http://discussion.autodesk.com/forums/thread.jspa?messageID=6126219?
returns...
bad
argument type: VLA-object collection: #<VLA-OBJECT
19565f84>
Hey Mr. Nick,
Did you get an answer? I am using AutoCAD 2008 and NavisWorks 2009. Then I installed NavisWorks 2010 and the following code broke.
(vlax-for x (vla-get-Blocks (vla-get-ActiveDocument (vlax-get-Acad-Object))) (print x))
suppose to print: #<VLA-OBJECT IAcadModelSpace2 06d49bd4> #<VLA-OBJECT IAcadPaperSpace2 06d49864> etc.
now prints: #<VLA-OBJECT 07e0110c> #<VLA-OBJECT 07e0115c> etc.
I'm going to uninstall NavisWorks 2010 to see if that fixes things.
Don