Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measurement value of two-line angular dimension #485

Open
mme1950 opened this issue Nov 6, 2024 · 1 comment
Open

Measurement value of two-line angular dimension #485

mme1950 opened this issue Nov 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mme1950
Copy link
Contributor

mme1950 commented Nov 6, 2024

The value returned by the DimensionAngular2Line.Measurement property is (converted to degrees), e.g., 114 instead of 95.
ACadSharp calculates this value instead using the value provided by AutoCAD, read from the DWG.

A two-line angular dimension is defiened by two intersecting straight lines given by four points and one more point that defines the radius of the arc and the location of the arc. It also defines which angle has to be taken. The value returned does not consider this, consquently returns 180 - measurement.

Why don't we use the value provided by AutoCAD?

@mme1950 mme1950 added the bug Something isn't working label Nov 6, 2024
@DomCR
Copy link
Owner

DomCR commented Nov 6, 2024

Hi @mme1950,

For dxf the measurement is optional, so it may not be present when reading the file.

The measurement property should be a read-only dynamic value, if you change the points of the dimension the measurement should reflect the change, also it doesn't make any sense to be able to set the measurement value when the value is determinate by the dimension itself.

I'll check the case that you presented for DimensionAngular2Line and try to find a solution for this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants