select case in "properties table" using VBA and refresh block

select case in "properties table" using VBA and refresh block

simon.ruas
Explorer Explorer
424 Views
3 Replies
Message 1 of 4

select case in "properties table" using VBA and refresh block

simon.ruas
Explorer
Explorer

Dear All,

I've created a few dynamic block and configuration that I listed in "properties table". I can now add and select my "type" of block and the dimension of the block adjust accordingly. 

simonruas_0-1675068379993.png

simonruas_1-1675068439199.png

 

I'm trying to do the same using VBA. I have selected the block, and listed dynamic properties. In all the properties, I've found the property corresponding to the"type" of block. But when I change it, it doesn't update the full block, it changes the type without adjusting all the dimensions.

 

Any idea if this is the correct method or how to do this?

 

My code to get the properties and update the type is like this.

attributes_2 = NEW_BLOCK.GetDynamicBlockProperties
attributes_2(19).Value = "TYPE 1"

 

Thank you for your valuable help

Best regards

Simon

 

0 Likes
425 Views
3 Replies
Replies (3)
Message 2 of 4

Ed__Jobe
Mentor
Mentor

Not tried, but perhaps the BlockReference.Update method will force the events to fire.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 4

simon.ruas
Explorer
Explorer

Thank you for your answer. 
unfortunately, the command doesn't help the update of the block :s

0 Likes
Message 4 of 4

Ed__Jobe
Mentor
Mentor

Sorry, I don't know what else to tell you at the moment. I'm too busy to research it any further.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes