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 DXF units #2390

Closed
asadow opened this issue May 7, 2024 · 3 comments
Closed

Read DXF units #2390

asadow opened this issue May 7, 2024 · 3 comments
Labels
reprex needs a minimal reproducible example

Comments

@asadow
Copy link

asadow commented May 7, 2024

Is it possible to extract the $INSUNITS header variable from a .dxf file?

I know Python can do so with ezdxf:

import ezdxf
from ezdxf import units

doc = ezdxf.readfile(file_path)
doc.units

Reticulate:

library(reticulate)
ezdxf <- import("ezdxf")
doc = ezdxf$readfile(file_path)
doc$units
@edzer
Copy link
Member

edzer commented May 7, 2024

Please provide a .dxf file that has such a header variable.

@edzer edzer added the reprex needs a minimal reproducible example label May 7, 2024
@asadow
Copy link
Author

asadow commented May 15, 2024

Here

@edzer
Copy link
Member

edzer commented May 15, 2024

I believe not; see here for the DXF driver docs; please reopen if you think this driver should give you access to units somehow.

@edzer edzer closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reprex needs a minimal reproducible example
Projects
None yet
Development

No branches or pull requests

2 participants