haplokuon / netDxf

.net dxf Reader-Writer
MIT License
1.01k stars 411 forks source link

When modifying the document viewport , the spline entity in the block is changed #413

Open seppelhuang opened 2 years ago

seppelhuang commented 2 years ago

var dxfDocument = DxfDocument.Load(@"E:\1.dxf"); dxfDocument.Viewport.ViewHeight = 100000; dxfDocument.Viewport.ViewCenter = new Vector2(0, 0);

        dxfDocument.Save("E:\\"2.dxf");

1

after modifying viewport

2

dxf.zip

haplokuon commented 2 years ago

You are using AutoCad, aren't you? You must regenerate your drawing, "regen" command.