How to convert a .stl file to .dwg using Python?

How to convert a .stl file to .dwg using Python?

tanmayms3009
Participant Participant
1,012 Views
4 Replies
Message 1 of 5

How to convert a .stl file to .dwg using Python?

tanmayms3009
Participant
Participant

Hi, I want to export a .dwg file to .stl using Python.

According to ActiveX documentation, 

tanmayms3009_0-1659152365842.png

the export is possible only to the mentioned formats in the picture.

 

Is there any other way to export drawings from .dwg to .stl? Any solution is appreciated.

 

Thanks in advance.

0 Likes
1,013 Views
4 Replies
Replies (4)
Message 2 of 5

stevor
Collaborator
Collaborator

Gilles Chanteau sugested a way on post:
forums.autodesk.com/t5/visual-lisp-autolisp-and-general/python-programming-in-autocad/td-p/8164948

 

And a search for 'DXF' and 'python' finds some.

S
0 Likes
Message 3 of 5

tanmayms3009
Participant
Participant

Thank you @stevor.

I would like to know more specific answer. But thanks for the link again, I'll try IronPython. 

0 Likes
Message 4 of 5

Sea-Haven
Mentor
Mentor

Posted somewhere use STLOUT its a inbuilt command. Python should be able to call it.

0 Likes
Message 5 of 5

tanmayms3009
Participant
Participant

Thank you @Sea-Haven 

0 Likes