TheSwamp
Code Red => .NET => Topic started by: Stevray on March 09, 2013, 06:45:32 AM
-
I'm developing a framework for inserting and manipulating dynamic blocks in VB.Net but one thing has me stumped.
Many of the blocks that I use have associative hatches. For only some of the blocks, the hatches become non-associative upon insertion; for most of them the hatches remain associative and work just fine.
At this point, it is my guess that the loss of associativity is connected in some way with the original definition of the dynamic block and not with the code that inserts the block but other than that guess, I am completely stumped. Does anyone have any suggestions about where to start looking for a solutions?
-
Welcome on board!
Can you please upload sample drawing with similar block
to look in this problem closely, better yet in A2010 format.
-
Attached are two .dwg files, "TGI End View" and "Door" which contain "wblocked" definitions of blocks with the the names "TGI End View" and "Door" respectively. Both of them have pure white hatches that are associative in the the original block definitions.
When I use the .net code to insert references to these blocks and to modify their dynamic properties (i.e. to resize them), the hatch in the TGI End View block continues to be associative and resizes with the block; however the hatch within the Door block does not.
I am stumped as to why. I suspect that it is connected with how the blocks are initially built rather than the code that I wrote to insert them but I could be wrong. Any help would be greatly appreciated.
-
It appears that "Door" didn''t get uploaded properly. Trying again.
-
Try this code, but your block Door isn'good designed
-
Your comment that the door is not well designed is right on. I am convinced that is the problem; I have no trouble creating a reference to the block and then setting its properties.