Vertical dimension bug
Moderators: SDS, support, admin
Vertical dimension bug
Hello
I got a vertical CADDimension issue.
After creating a vertical dimension line, save it as a '.dwg' file and open it. However, if you edit one point on the dimension line, the dimension line itself is crushed.
I tried setting it in various ways and cloning the previously created vertical dimension line in Autocad LT 2020, saved it as a '.dwg' file and then, opened it, but the symptoms were the same.
Please check the below video URL.
https://youtu.be/2x0cTNh2C54
Can you let me know if you know the correct code for vertical CADDimension?
I got a vertical CADDimension issue.
After creating a vertical dimension line, save it as a '.dwg' file and open it. However, if you edit one point on the dimension line, the dimension line itself is crushed.
I tried setting it in various ways and cloning the previously created vertical dimension line in Autocad LT 2020, saved it as a '.dwg' file and then, opened it, but the symptoms were the same.
Code: Select all
CADDimension dimension = new CADDimension()
dimension.DefPoint = new DPoint(5000, 5000, 0);
dimension.LinDefPoint1 = new DPoint(0, 0, 0);
dimension.LinDefPoint2 = new DPoint(0, 10000, 0);
dimensionH.Layer = vLayer;
cadImage.Converter.Loads(dimensionH);
cadImage.Layouts[0].AddEntity(dimensionH);
https://youtu.be/2x0cTNh2C54
Can you let me know if you know the correct code for vertical CADDimension?
Re: Vertical dimension bug
Hello Sing,
Please try to use the following code for creating a vertical dimension:
Mikhail
Please try to use the following code for creating a vertical dimension:
Code: Select all
CADDimension dimension = new CADDimension(CADDimension.DimensionType.Rotated, new DPoint(0, 0, 0), new DPoint(0, 10000, 0), 5000, true)
{
Style = cadImage.Converter.DimensionStyleByName("DimStyle1"),
Layer = cadImage.Converter.LayerByName("Dimensions")
};
cadImage.Converter.Loads(dimension);
cadImage.Layouts[0].AddEntity(dimension);
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Vertical dimension bug
Hello Mikhail
Thank you so much. It works very well.
Thank you so much. It works very well.
