Dimension Entities are ignored (DxfDocument.Load)

May 19 at 11:50 AM
Edited May 21 at 5:23 PM
Hi!
I have created a really simple DXF Drawing. It consists of a Rectangle and a Dimension Entity
You can check it out here: https://www.dropbox.com/s/lmq6m8xhhnxrwla/asdf.dxf?dl=0
var dxfDocument = DxfDocument.Load(dxfPath);

Console.WriteLine(dxfDocument.Lines.Count); // output: 4
Console.WriteLine(dxfDocument.Dimensions.Count); // output: 0
As you see the dxfDocument.Dimensions collection is empty...

What am I doing wrong?
Coordinator
May 24 at 6:02 PM
The dimension entity in your file did not contain its associated block that makes up the dimension picture. After running a couple test it seems that in one of the latest versions of AutoCad, it that happens, it will automatically generate the block when loading the dxf. This use to generate an error. The weird thing is that if a dimension with out its corresponding block does not exits and that dimension belongs to a block it will not be loaded.

Anyways, now in version 2.0.3 if this happens the block of the dimension will be automatically created; and your file should be loaded correctly.

Daniel
May 27 at 11:37 AM
Edited May 27 at 11:37 AM
haplokuon wrote:
Anyways, now in version 2.0.3 if this happens the block of the dimension will be automatically created; and your file should be loaded correctly.
Great! Ty :)