How to insert parameters of a dynamic block into VBA

How to insert parameters of a dynamic block into VBA

Anonymous
Not applicable
2,168 Views
1 Reply
Message 1 of 2

How to insert parameters of a dynamic block into VBA

Anonymous
Not applicable

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 

 

0 Likes
Accepted solutions (1)
2,169 Views
1 Reply
Reply (1)
Message 2 of 2

kasperwuyts
Collaborator
Collaborator
Accepted solution

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.
0 Likes