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

How to obtain the values of major axis and minor axis in ACadSharp.Antities.Ellipse #440

Open
zxxiao2012 opened this issue Sep 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@zxxiao2012
Copy link

Describe the bug
For elliptical instances, it is not possible to obtain the values of major axis and minor axis

Screenshots
微信截图_20240906110907
微信截图_20240906110907

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

DomCR commented Sep 6, 2024

Hi @zxxiao2012,

The major axis property is called Endpoint:

		/// <summary>
		/// Endpoint of major axis, relative to the center (in WCS).
		/// </summary>
		[DxfCodeValue(11, 21, 31)]
		public XYZ EndPoint { get; set; } = XYZ.Zero;

The minor axis is not provided but you can easly get it by finding the perpendicular between Center and EndPoint.

Hope this helps!

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