This repository was archived by the owner on Oct 11, 2023. It is now read-only.
ArcLengthDimension with two arcs #452
Unanswered
RealCommGithub
asked this question in
Q&A
Replies: 1 comment
-
|
You will have to provide a full sample that shows your issue. I have not been able to reproduce it. This sample works just fine. double radius = 4;
Vector2 center = new Vector2(1, 2);
Arc arc1 = new Arc(center, radius, 90, 270) { Color = AciColor.Blue };
Arc arc2 = new Arc(center, radius, 270, 90) { Color = AciColor.Red };
ArcLengthDimension dim1 = new ArcLengthDimension(arc1, radius + 1) { Color = AciColor.Cyan };
ArcLengthDimension dim2 = new ArcLengthDimension(arc2, radius + 1) { Color = AciColor.Magenta };
ArcLengthDimension dim3 = new ArcLengthDimension(center, radius, 90, 270, radius + 1) { Color = AciColor.Cyan };
ArcLengthDimension dim4 = new ArcLengthDimension(center, radius, 270, 90, radius + 1) { Color = AciColor.Magenta };
DxfDocument doc = new DxfDocument();
doc.Entities.Add(arc1);
doc.Entities.Add(arc2);
doc.Entities.Add(dim1);
doc.Entities.Add(dim2);
doc.Entities.Add(dim3);
doc.Entities.Add(dim4);
doc.Save("test.dxf"); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a circle formed by two arcs:
I used the ArcLengthDimension to draw the dimensions. I used the constructor with arc, offset and style.
What I espected to get was this: https://ibb.co/4YCRwcV
But my result is this: https://ibb.co/R3B4Pfg
The right arc doesn't have the DimensionLength. It seems like netDxf draw always in the same direction.
Beta Was this translation helpful? Give feedback.
All reactions