6/30/2021 3:02 AM
I am Ji.
I downloaded the trial version of CadLib and am currently testing it.
Set a annotation scale to viewport, but does not apply.
DxfScale mainScale = new DxfScale();
DxfViewport mainViewport = new DxfViewport();
7/15/2021 1:15 PM
Can you post your complete program so I can compile and test it?
7/16/2021 1:24 AM
Thank you for your reply.
Our evaluation is almost complete.
Following is my code.
DxfLayout batch = new DxfLayout("batch");
// This viewport is mandatory, it describes paper space itself.
DxfScale scale = new DxfScale();
// This viewport is a viewport showing a piece of model space in paper space.
Vector3D boxOrg = new Vector3D(mainVp.Size.X / 2, -mainVp.Size.Y / 2, 0);
mainVp.Center = vpLocation + boxOrg;