Drawing dimensions on dynamic blocks not updating after Excel VBA updates block properties

Drawing dimensions on dynamic blocks not updating after Excel VBA updates block properties

s.mahmoodV7HPM
Explorer Explorer
507 Views
2 Replies
Message 1 of 3

Drawing dimensions on dynamic blocks not updating after Excel VBA updates block properties

s.mahmoodV7HPM
Explorer
Explorer

Hi all,

I am updating dynamic block in a drawing and it is working fine, problem I am facing that dimensions are not adjusting to new size. 

smahmoodV7HPM_0-1678798300450.png

 

If I double click manually on the block (before block definition window appears) dimensions are updated to new size of block. 

smahmoodV7HPM_1-1678798369898.png

 

Any idea I can get it done through automatically whenever block size is changed via some setting or adding something to my code. 

I have tried acadApp.Application.Update and it does the update but doesn't help with dimensions. 

 

best regards, 

Zee

0 Likes
Accepted solutions (1)
508 Views
2 Replies
Replies (2)
Message 2 of 3

Ed__Jobe
Mentor
Mentor
Accepted solution

Nice pictures... we need code. And a sample of your dwg to work with. Provide as much info as possible when asking for help.

 

You might look at this thread, since it is similar.

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 3

s.mahmoodV7HPM
Explorer
Explorer

Hi Ed, 

thanks for guiding me to right direction which led me a way to get this solved.

Apologies that my post was not up to standard. 

 

Adding this to my vba code solved it for me 

acadDoc.SendCommand "Regen3" & vbCr

 

best regards,

sam

 

 

0 Likes