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

Read assigned coordinate system #529

Open
gleeuwdrent opened this issue Jan 14, 2025 · 1 comment · May be fixed by #546
Open

Read assigned coordinate system #529

gleeuwdrent opened this issue Jan 14, 2025 · 1 comment · May be fixed by #546
Labels
feature New feature added

Comments

@gleeuwdrent
Copy link

DWG files can have a coordinate system assigned. It would be helpful if ACadSharp can read the definition of the coordinate system.

In the Autodesk AutoCAD API the coordinate system is available as property of the database:
GeoLocationData geolocation = t.GetObject(db.GeoDataObject, AcDb.OpenMode.ForRead) as GeoLocationData;
Preferably ACadSharp stores the coordinate system as property of document because ACadSharp doesn't has a database.

The XML definition of the of the coordinate system is available under DXF code 'GEODATA'. If you use the method this._textReader.ReadVariableText() you get the XML definition of the coordinate system.

@DomCR
Copy link
Owner

DomCR commented Jan 17, 2025

Hi @gleeuwdrent,

I see that there is documentation for dwg and dxf, I'll open a branch to implement this object.

Thanks for the report!

@DomCR DomCR added the feature New feature added label Jan 17, 2025
@DomCR DomCR linked a pull request Jan 31, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature added
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants