Most efficient way of importing a dxf to a sketch

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
geobruce
Posts: 48
Joined: Sat May 19, 2018 9:34 am

Most efficient way of importing a dxf to a sketch

Post by geobruce »

Hi

I'm trying to import a dxf (from librecad) into freecad. I would like to have one sketch with all the hexagons so I could pad this sketch on top of a circular base.

What would be the best or easiest way to do this?
At the moment I can:
- select all parts of one hexagon
- upgrade (draft)
- convert to sketch
But this can't be the right way to do it.

Thanks in advance!
Attachments
Screenshot from 2019-08-26 22-37-42.png
Screenshot from 2019-08-26 22-37-42.png (175.88 KiB) Viewed 1793 times
only hex.dxf
(520.94 KiB) Downloaded 64 times
hex grid only.dxf
(521.07 KiB) Downloaded 63 times
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Most efficient way of importing a dxf to a sketch

Post by bejant »

geobruce wrote: Mon Aug 26, 2019 8:40 pm I'm trying to import a dxf (from librecad) into freecad. I would like to have one sketch with all the hexagons so I could pad this sketch on top of a circular base.
To me it looks like you only need one Sketch of the circular base, and another Sketch of one hexagon. I wouldn't make a Sketch that contains every hexagon, mainly because Sketcher Solver would take a prohibitively long time to solve such a Sketch. My suggestion id that you Pad your circular base, then Pad one hexagon (probably the center one) on top of the base, then use either Part Design WB > PolarPattern or MultiTransform to make the remaining hexagon solids.

Or you could use Part WB > Extrude to make an Extrude of one hexagon, then use Draft WB > Array to make the copies.

Either way, with that many objects in your model, FreeCAD will slow down significantly.
chrisb
Veteran
Posts: 54177
Joined: Tue Mar 17, 2015 9:14 am

Re: Most efficient way of importing a dxf to a sketch

Post by chrisb »

For such a number of objects I would recommend Draft->Array, as (sad to say) the PartDesign patterns are by far not as efficient as their draft counterpart.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: Most efficient way of importing a dxf to a sketch

Post by TheMarkster »

Take a look at FCHoneycombMaker macro.
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Most efficient way of importing a dxf to a sketch

Post by bejant »

...which reminds me that there are a few forum topics about making a honeycomb pattern, and also that DeepSOIC used his Lattice WB to do that too.
geobruce
Posts: 48
Joined: Sat May 19, 2018 9:34 am

Re: Most efficient way of importing a dxf to a sketch

Post by geobruce »

bejant wrote: Mon Aug 26, 2019 10:12 pm Either way, with that many objects in your model, FreeCAD will slow down significantly.
What other tool/software would you recommend to generate the desired shape? openSCAD maybe?
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Most efficient way of importing a dxf to a sketch

Post by bejant »

I haven't had a need to use any other 3D CAD programs in the past several years, but I think it would probably be faster to create your model in FreeCAD than it would be to search for and then learn some other software.

Simply eliminating the rounded corners from the hexagons would probably speed processing time up a bit.
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: Most efficient way of importing a dxf to a sketch

Post by TheMarkster »

phpBB [video]

honeycomb_circle.FCStd
(612.52 KiB) Downloaded 64 times
These hexagons don't have the rounded corners. If you want that you might be able to replace the HoneycombHexagon object as the base of ExtrudedHexagon with one of the rounded hexagons. I would see if I could select all the edges and make a compound, then extrude the compound (this would be extruding a single rounded hexagon). Then make that extruded rounded hexagon the base for the 2 draft arrays --HoneycombArray1 and HoneycombArray2.

Using compound explode on the Fused_Arrays object is the key to being able to individually delete the extruded honeycombs from the array to get the diamond shape. If you change the size of the array you will have to probably explode that array again.
geobruce
Posts: 48
Joined: Sat May 19, 2018 9:34 am

Re: Most efficient way of importing a dxf to a sketch

Post by geobruce »

TheMarkster wrote: Tue Aug 27, 2019 7:57 pm
phpBB [video]


honeycomb_circle.FCStd

These hexagons don't have the rounded corners. If you want that you might be able to replace the HoneycombHexagon object as the base of ExtrudedHexagon with one of the rounded hexagons. I would see if I could select all the edges and make a compound, then extrude the compound (this would be extruding a single rounded hexagon). Then make that extruded rounded hexagon the base for the 2 draft arrays --HoneycombArray1 and HoneycombArray2.

Using compound explode on the Fused_Arrays object is the key to being able to individually delete the extruded honeycombs from the array to get the diamond shape. If you change the size of the array you will have to probably explode that array again.
Whoo!! Thank you this is a really nice example. I was able to make it in openscad, but your file is a great help! thanks
Attachments
hex.PNG
hex.PNG (143.13 KiB) Viewed 1647 times
Post Reply