unable to export boolean common of two bodies to an amf file

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
spllg
Posts: 8
Joined: Thu Sep 12, 2019 1:24 pm

unable to export boolean common of two bodies to an amf file

Post by spllg »

hello,

using the partdesign workbench i have constructed 2 bodies and made the boolean common of both bodies. when i try to export the result to an .amf-file for printing, a small binary file (342 bytes) is created which is unsuitable for printing.

what could i have missed?

thanks for your answer.

i'm running freecad version 0.19 on debian buster.

additional info: when try to export as .stl, a file with the following content ist created

MESH-MESH-MESH-MESH-MESH-MESH-MESH-MESH-MESH-MESH-MESH-MESH-MESH-MESH-MESH-MESH
^@^@^@^@
drmacro
Veteran
Posts: 8975
Joined: Sun Mar 02, 2014 4:35 pm

Re: unable to export boolean common of two bodies to an amf file

Post by drmacro »

Hard to guess without a file...

Did you use the Part Design Boolean and select the actual Body objects?

Did you check the geometry with the Part Geoemtry check (with the BOP option selected) to make sure the geometry is valid?

So many questions... :mrgreen:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
spllg
Posts: 8
Joined: Thu Sep 12, 2019 1:24 pm

Re: unable to export boolean common of two bodies to an amf file

Post by spllg »

i have created a simple demonstration - see attached amf.FCStd. please select cutted-cube, export as amf and have a look at the result.
Attachments
amf.FCStd
(18.69 KiB) Downloaded 15 times
drmacro
Veteran
Posts: 8975
Joined: Sun Mar 02, 2014 4:35 pm

Re: unable to export boolean common of two bodies to an amf file

Post by drmacro »

I opened the file, selected the Body called Cube, and exported as .amf.

When I open it in Cura it is exactly what the model shows in FreeCAD.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
Roy_043
Veteran
Posts: 8538
Joined: Thu Dec 27, 2018 12:28 pm

Re: unable to export boolean common of two bodies to an amf file

Post by Roy_043 »

Usually you can also get a correct export by selecting the Tip of a body, instead of the body itself, but not in this case apparently.
spllg
Posts: 8
Joined: Thu Sep 12, 2019 1:24 pm

Re: unable to export boolean common of two bodies to an amf file

Post by spllg »

selecting the body did the trick (i used to select the tip).

thanks a lot.
chrisb
Veteran
Posts: 54150
Joined: Tue Mar 17, 2015 9:14 am

Re: unable to export boolean common of two bodies to an amf file

Post by chrisb »

This is obviously an error with the PartDesign boolean.

Besides that, if your model is of similar structure, you should not use a boolean, you should use a pocket instead, or to be more general: use the inverse operations, i.e. Pad <-> Pocket, Revolve <-> Groove, AdditiveXY <-> SubtractiveXY.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply