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 read existing dwg file using autocad?? #40

Open
skyblue0807 opened this issue Feb 23, 2022 · 1 comment
Open

How to read existing dwg file using autocad?? #40

skyblue0807 opened this issue Feb 23, 2022 · 1 comment

Comments

@skyblue0807
Copy link

I studied your tutorial materials.
But most of them are drawing pictures into new file.

How could I open/load/read existing dwg file??

@Derie1
Copy link

Derie1 commented Nov 14, 2022

Try this:

import pyacadcom

acad = pyacadcom.AutoCAD()
acad_doc = acad.Documents.Open("path_to_your_file")
#optional
acad.Visible = True
ms = acad_doc.ModelSpace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants