I imported an STL that was sent to me. I want to remove a box shape protruding out. The STL opens fine. I go into the Part Design view, then try using the Subtractive Primitive (Box) feature, but FreeCAD 0.18 responds with:
"In order to use PartDesign you need an active Body object in the document. Please make one active (double click) or create one." The second paragraph in the "No active Body" error states, "If you have a legacy document with PartDesign objects without Body, use the migrate function in PartDesign to put them into a Body."
I saw this https://forum.freecadweb.org/viewtopic.php?t=21741, but the provided answer is too vague.
Creating a new Body, then dragging the imported STL object into the Body shows an arrow icon (looks like a shortcut icon), but does not appear to do anything once the object is dropped, or the mouse button is released. The same No active Body error appears after trying this.
How do I add an imported STL object into the/a Body, so I can then use tools like Subtractive Primitive?
Editing Imported STL
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
-
- Posts: 3
- Joined: Fri Mar 11, 2016 5:33 pm
Re: Editing Imported STL
Hi timesenemy, and welcome! The Part Design WB only works with solids, and your .stl is a mesh. Instead, after doing File > New and Importing your .stl, change to the Part WB (not Part Design) and from the pull-down menu choose Part > Create shape from mesh. From here you can change your mesh to a solid.
Going only by your description, I'd avoid the Part Design Wb altogether if all you want to do is remove a simple box shape from the model. You can change to the Shetcher WB and create a Sketch of the cross-section of the shape you'd like to use to remove the box shape. Then go back to the Part WB and Extrude your Sketch. From there you can do a Boolean Difference to subtract you Extrude from the solid.
Or instead of Sketching a shape and Extruding it, you can stay in the Part WB, create a Cube, change the size to suit your needs, move it into place, and subtract itt from your solid.
If you need more help, post back - and it might help to include your model.
Going only by your description, I'd avoid the Part Design Wb altogether if all you want to do is remove a simple box shape from the model. You can change to the Shetcher WB and create a Sketch of the cross-section of the shape you'd like to use to remove the box shape. Then go back to the Part WB and Extrude your Sketch. From there you can do a Boolean Difference to subtract you Extrude from the solid.
Or instead of Sketching a shape and Extruding it, you can stay in the Part WB, create a Cube, change the size to suit your needs, move it into place, and subtract itt from your solid.
If you need more help, post back - and it might help to include your model.
Re: Editing Imported STL
If you want to use Part Design:
First create a Solid from your .stl.
Go to Part Design and create a Body.
From the history tree, drag and drop your Solid into Body.
A new copy of your Solid, named BaseFeature, will be created inside the Body.
You can work with the new BaseFeature in Part Design.
- HarryGeier
- Veteran
- Posts: 1231
- Joined: Mon Jul 10, 2017 12:36 pm
- Location: Hof Germany
Re: Editing Imported STL
You can also watch some of my videos based on that workflow for 0.17 or 0.18
Kaum macht man´s richtig , gehts´s
My Video Tutorials on Youtube: https://www.youtube.com/channel/UCoe3B ... p8Q/videos
My FreeCAD Stuff on Hidrive: https://my.hidrive.com/share/qr3l1yddy6#$/
My Video Tutorials on Youtube: https://www.youtube.com/channel/UCoe3B ... p8Q/videos
My FreeCAD Stuff on Hidrive: https://my.hidrive.com/share/qr3l1yddy6#$/
Re: Editing Imported STL
Part->Defeaturing may be worth a try as well.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Editing Imported STL
Depending on the kind of mesh data you have it's not always the best to convert it into a shape because this usually creates a very heavy B-REP model often causing difficulties for further processing.Instead, after doing File > New and Importing your .stl, change to the Part WB (not Part Design) and from the pull-down menu choose Part > Create shape from mesh.
So, the alternative is to create a sketch, extrude it and then go back to Mesh design and convert the solid into a mesh. Then you can use the boolean cut operation of the Mesh design workbench.
-
- Posts: 3
- Joined: Fri Mar 11, 2016 5:33 pm
Re: Editing Imported STL
bejant, and all who replied, thank you for your responses!bejant wrote: ↑Tue Jun 18, 2019 2:24 am Hi timesenemy, and welcome! The Part Design WB only works with solids, and your .stl is a mesh. Instead, after doing File > New and Importing your .stl, change to the Part WB (not Part Design) and from the pull-down menu choose Part > Create shape from mesh. From here you can change your mesh to a solid.
Going only by your description, I'd avoid the Part Design Wb altogether if all you want to do is remove a simple box shape from the model. You can change to the Shetcher WB and create a Sketch of the cross-section of the shape you'd like to use to remove the box shape. Then go back to the Part WB and Extrude your Sketch. From there you can do a Boolean Difference to subtract you Extrude from the solid.
Or instead of Sketching a shape and Extruding it, you can stay in the Part WB, create a Cube, change the size to suit your needs, move it into place, and subtract itt from your solid.
If you need more help, post back - and it might help to include your model.
bejant, as I was reading your response, I realized it was a mesh, not a solid! Rookie mistake ... but i am a newbie at this so it is fitting. Also, I used your advice, using the Part WB and extruding a sketch to remove the box shape, and it worked perfectly! Again, thank you!
-
- Posts: 3
- Joined: Fri Mar 11, 2016 5:33 pm
Re: Editing Imported STL
bejant, I may try this later, just to get more familiar with FreeCad. Thank you!bejant wrote: ↑Tue Jun 18, 2019 2:31 amIf you want to use Part Design:
First create a Solid from your .stl.
Go to Part Design and create a Body.
From the history tree, drag and drop your Solid into Body.
A new copy of your Solid, named BaseFeature, will be created inside the Body.
You can work with the new BaseFeature in Part Design.
Re: Editing Imported STL
Thanks Werner, I'll have to remember that!
You're welcome, and as you can see, I'm still learning too!timesenemy wrote: ↑Wed Jun 19, 2019 6:13 pm bejant, and all who replied, thank you for your responses!
bejant, as I was reading your response, I realized it was a mesh, not a solid! Rookie mistake