.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VLA in 2009

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
334 Views, 2 Replies

VLA in 2009

In AutoCAD 2006 I had a routine that would take an existing user selection,
filter out just dynamic blocks, then open the properties dialog. This allows
them to change the visibility state but not have to individually select the
dynamic blocks. The issue was that issuing the -vbarun command deselected
the items, so I used (vla-runmacro (vlax-get-acad-object)
"FilterDynamicBlocks")

In 2009 when I try this I get the error "(vla-runmacro
(vlax-get-acad-object) "FilterDynamicBlocks") ; error:
no function definition: VLAX-GET-ACAD-OBJECT". Is this method unsupported,
or is there a reasonable workaround?

--
Regards

Dave Preston
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous


I think you may have posted in the wrong group, but
in

any case, it looks like a case of not calling
(vl-load-com)

before trying to use any vlax-* functions.


 

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000
through 2009

href="http://www.acadxtabs.com">http://www.acadxtabs.com

 


 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
In
AutoCAD 2006 I had a routine that would take an existing user selection,

filter out just dynamic blocks, then open the properties dialog. This
allows
them to change the visibility state but not have to individually
select the
dynamic blocks. The issue was that issuing the -vbarun command
deselected
the items, so I used (vla-runmacro (vlax-get-acad-object)

"FilterDynamicBlocks")

In 2009 when I try this I get the error
"(vla-runmacro
(vlax-get-acad-object) "FilterDynamicBlocks") ;
error:
no function definition: VLAX-GET-ACAD-OBJECT". Is this method
unsupported,
or is there a reasonable workaround?

--

Regards

Dave Preston
Message 3 of 3
Anonymous
in reply to: Anonymous


Thanks Tony,

Oops, wrong group.

Works a treat now, though
size=2>I didn't call (vl-load-com) in 2006; was it loaded by
default?


--
Regards

 

Dave Preston


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


I think you may have posted in the wrong group, but
in

any case, it looks like a case of not calling
(vl-load-com)

before trying to use any vlax-* functions.


 

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000
through 2009

href="http://www.acadxtabs.com">http://www.acadxtabs.com

 


 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
In
AutoCAD 2006 I had a routine that would take an existing user selection,

filter out just dynamic blocks, then open the properties dialog. This
allows
them to change the visibility state but not have to individually
select the
dynamic blocks. The issue was that issuing the -vbarun
command deselected
the items, so I used (vla-runmacro
(vlax-get-acad-object)
"FilterDynamicBlocks")

In 2009 when I try
this I get the error "(vla-runmacro
(vlax-get-acad-object)
"FilterDynamicBlocks") ; error:
no function definition:
VLAX-GET-ACAD-OBJECT". Is this method unsupported,
or is there a
reasonable workaround?

--
Regards

Dave
Preston

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost