TheSwamp

Code Red => .NET => Topic started by: zero.half on October 31, 2020, 06:19:16 PM

Title: Dynamic block modification
Post by: zero.half on October 31, 2020, 06:19:16 PM
Hello,

I'm wondering if such action with dynamic blocks is safe:
Let's say I have a dynamic block definition and two references in the drawing. Both references have modified parameters (in different ways), so there are two additional anonymous definitions in block table. Suppose I want to modify a circle in one of those references. Apart from visibility state, this circle is not a part of any parameter action. I find proper anonymous definition, change the radius and call RecordGraphicsModified.

I tried it and it looks fine. However I have a gut feeling that it may be risky in the long run to have anonymous block definition changed manually.
Has anyone tried similar stuff? Is it good/bad idea to mess with it? I'd be grateful for some hint.
Title: Re: Dynamic block modification
Post by: Jeff H on November 02, 2020, 12:41:12 PM
Have you tried saving drawing. closing, & reopening.
I bet if you edit the block through block editor it will probably revert back.

I don't know if I would trust that unless you removed it from the dynamic block definition and made it its own block.


Title: Re: Dynamic block modification
Post by: zero.half on November 03, 2020, 03:42:24 PM
Thanks for suggestions! Saving, reopening or regenall don't revert this change, but You're right - block editor brings it back to the original.