Can freeCAD convert .dwg to any image format via python code? #11723
ufoozhenghao
started this conversation in
Code contribution discussions
Replies: 2 comments
-
You can load a dwg and generate an image without using the GUI. Have a look at https://github.com/FreeCAD/FreeCAD/blob/main/src/Mod/Draft/importDWG.py and https://github.com/FreeCAD/FreeCAD/blob/main/src/Mod/Arch/OfflineRenderingUtils.py About C++ and Python, most of FreeCAD is coded in C++, but several modules in src/Mod are coded in Python, and also all the addon modules at https://github.com/FreeCAD/FreeCAD-addons |
Beta Was this translation helpful? Give feedback.
0 replies
-
thx
Xuan
…________________________________
From: Yorik van Havre ***@***.***>
Sent: Thursday, December 14, 2023 5:07:20 PM
To: FreeCAD/FreeCAD ***@***.***>
Cc: HaoXuan ***@***.***>; Author ***@***.***>
Subject: Re: [FreeCAD/FreeCAD] Can freeCAD convert .dwg to any image format via python code? (Discussion #11723)
You can load a dwg and generate an image without using the GUI. Have a look at https://github.com/FreeCAD/FreeCAD/blob/main/src/Mod/Draft/importDWG.py and https://github.com/FreeCAD/FreeCAD/blob/main/src/Mod/Arch/OfflineRenderingUtils.py
About C++ and Python, most of FreeCAD is coded in C++, but several modules in src/Mod are coded in Python, and also all the addon modules at https://github.com/FreeCAD/FreeCAD-addons
—
Reply to this email directly, view it on GitHub<#11723 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKBBYQDOKMCD5WQFVSY2TQ3YJK6URAVCNFSM6AAAAABAUCOC5GVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQNJRGI4TK>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want a function that when i send a .dwg file to pyhon, it can convert it to image. Seems that it can be done in gui?
And the wiki says i can view python code, but i only found c code in github respo. Can anyone show me the pyhton code link?
Beta Was this translation helpful? Give feedback.
All reactions