LibreCad To FreeCad importing tool
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
LibreCad To FreeCad importing tool
Hi there,
I had plenty of LibreCad DXFs to import so I made a lil python script to convert them to FreeCAD sketches.
The process creates an individual sketch for each layer present in the DXF and attempts to create basic constraints between the entities in order to directly obtain closed shapes. Here it is:
https://framagit.org/MarcusFecit/LibreCadToFreeCad
git clone https://framagit.org/MarcusFecit/LibreCadToFreeCad
There might be some interesting ideas for those in charge of the FreeCAD's embedded importing tool.
Feel free to use it and share your thoughts.
Enjoy !
--
Marc BERLIOUX
I had plenty of LibreCad DXFs to import so I made a lil python script to convert them to FreeCAD sketches.
The process creates an individual sketch for each layer present in the DXF and attempts to create basic constraints between the entities in order to directly obtain closed shapes. Here it is:
https://framagit.org/MarcusFecit/LibreCadToFreeCad
git clone https://framagit.org/MarcusFecit/LibreCadToFreeCad
There might be some interesting ideas for those in charge of the FreeCAD's embedded importing tool.
Feel free to use it and share your thoughts.
Enjoy !
--
Marc BERLIOUX
--
Marc BERLIOUX
Marc BERLIOUX
Re: LibreCad To FreeCad importing tool
Nice!
This would be wicked cool as a FreeCAD Addon
This would be wicked cool as a FreeCAD Addon
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: LibreCad To FreeCad importing tool
Thanks Kunda1,
I'm very newbee with FreeCAD. And with Python too..
Is there a kind of tutorial somewhere on how to integrate an add-on in the FreeCAD's GUI ?
Have a nice day
--
Marc BERLIOUX
I'm very newbee with FreeCAD. And with Python too..
Is there a kind of tutorial somewhere on how to integrate an add-on in the FreeCAD's GUI ?
Have a nice day
--
Marc BERLIOUX
--
Marc BERLIOUX
Marc BERLIOUX
Re: LibreCad To FreeCad importing tool
https://github.com/FreeCAD/Workbench-Starterkit
Feel free to look at some of the other more established workbenches in https://github.com/FreeCAD/FreeCAD-addons
and of course ask the community for support if you need it. This type of tool has the potential to effectively and efficiently harness the power of both FOSS projects.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: LibreCad To FreeCad importing tool
Any resources for folks like @MarcX that would like to integrate an addon like this in to FC ?looo wrote:ping
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: LibreCad To FreeCad importing tool
What's on the Roadmap for this project? Do you prefer people to post feedback/bugs on the gitlab repo or in this thread?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: LibreCad To FreeCad importing tool
Maybe it is important to specify that ezdxf must be install .....MarcX wrote: ↑Sat Sep 15, 2018 2:30 pm Hi there,
I had plenty of LibreCad DXFs to import so I made a lil python script to convert them to FreeCAD sketches.
The process creates an individual sketch for each layer present in the DXF and attempts to create basic constraints between the entities in order to directly obtain closed shapes. Here it is:
https://framagit.org/MarcusFecit/LibreCadToFreeCad
git clone https://framagit.org/MarcusFecit/LibreCadToFreeCad
There might be some interesting ideas for those in charge of the FreeCAD's embedded importing tool.
Feel free to use it and share your thoughts.
Enjoy !
--
Marc BERLIOUX
Re: LibreCad To FreeCad importing tool
Hi all,
My script can now extract and process LWPOLYLINE entities too. They are converted to lines and/or circle arcs. So you can now, for example, process gears generated from Inkscape.
Still here:
https://framagit.org/MarcusFecit/LibreCadToFreeCad
git clone https://framagit.org/MarcusFecit/LibreCadToFreeCad
Profitez !
Have a nice day !
--
Marc BERLIOUX
My script can now extract and process LWPOLYLINE entities too. They are converted to lines and/or circle arcs. So you can now, for example, process gears generated from Inkscape.
Still here:
https://framagit.org/MarcusFecit/LibreCadToFreeCad
git clone https://framagit.org/MarcusFecit/LibreCadToFreeCad
Profitez !
OK, done. ThanksNemesis: Maybe it is important to specify that ezdxf must be install .....
You can continue to drop your comments or suggestions here, or through the git repo. Both are OK for meKunda1: What's on the Roadmap for this project? Do you prefer people to post feedback/bugs on the gitlab repo or in this thread?
Have a nice day !
--
Marc BERLIOUX
--
Marc BERLIOUX
Marc BERLIOUX
Re: LibreCad To FreeCad importing tool
As far as I have seen this is a standalone application, so I guess it's best to provide it via a cross-platform-packagemanger (pypi). For packaging scripts you can have a look at this:
https://python-packaging.readthedocs.io ... ripts.html
If you want to add some gui-stuff for freecad you can add a extension-module...
https://github.com/FreeCAD/Workbench-Starterkit
Re: LibreCad To FreeCad importing tool
+1looo wrote: ↑Wed Sep 19, 2018 11:34 am If you want to add some gui-stuff for freecad you can add a extension-module...
https://github.com/FreeCAD/Workbench-Starterkit
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs