netDxf icon indicating copy to clipboard operation
netDxf copied to clipboard

Block in block Error

Open sunrui19941128 opened this issue 2 years ago • 1 comments

ceshi4(1).zip Hello, I have a DXF file here. There is a polyline as a block and a circle as a block. These two blocks form a new block. After opening, the position is wrong, and the number of inserts printed out is only 1. The number of inserts seen in the DXF file is three

sunrui19941128 avatar Sep 05 '22 09:09 sunrui19941128

I do not see any problems. You have an Insert that references a block that contains two more inserts that references two other blocks. What you are building is a nested block a Parent-Childs tree structure. Only the parent Insert will appear at the document level, the other two belong to its parent and not to the document. You need to navigate through the tree structure to find them. Check the entities that belong to the block to go down the tree, and the insert`s owner to go up.

Why do you think that after opening the position is wrong? You might need to read #390.

haplokuon avatar Sep 23 '22 02:09 haplokuon