Community
Dynamic Blocks Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to insert parameters of a dynamic block into VBA

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Demasure1
1948 Views, 1 Reply

How to insert parameters of a dynamic block into VBA

Hello,

 

I have made lots of dynamic blocks with parameters, like length, width and height.. i trying to make a cabinet with a lot of dynamic blocks.

 

my Question is: ---> How can i get my parameters in vba? 

 

I want to change the block with a vba.code.

 

I am new with vba and i don't know how i can get my variables or parameters ( don't know the differents) in vba.. 

So i am looking for a code. 

I have made a code to insert the block into autocad.

 

Sorry if my english is bad.

I hope somebody can help me.

Thanks 

 

1 REPLY 1
Message 2 of 2
kasperwuyts
in reply to: Demasure1

Dynamic blocks have a property in VBA called GetDynamicBlockProperties, which returns an array of the parameters of the block. You have to type in this property yourself completely, but you will see VBA recognises it when it adds the caps.

 

http://help.autodesk.com/view/ACD/2015/ENU/?guid=GUID-16C8768B-2533-45FF-9CFF-FF864AC78202


Best regards
Kasper Wuyts
_______________________________________________________________________________
If this post solves your problem, clicking the 'accept as solution' button would be greatly appreciated.

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

Post to forums  

”Boost

 

”Tips

 

”Services