I can not use the file, it opens strange.
Please redo your experiment with 0.16, so that we make sure it is not some new bugs.
STL to SOLID -> Scale and Subtract
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!
Re: STL to SOLID -> Scale and Subtract
Need help? Feel free to ask, but please read the guidelines first
Re: STL to SOLID -> Scale and Subtract
I have found a less round about way of doing this in 0.16 without going round about way of centreing the solid, what strikes me as being the trickiest part is to understand exactly how the Draft workbench functions, its operation demands that you have good control over grid, workplane and snaps.
I have cleaned up the first file you sent and the only thing that is left is the mesh (this way we have a known start point)
Making a solid
1 -Select mesh and Part:Create shape from mesh
2 -hide mesh
3 -select shape and Part:Convert to solid
4 -hide shape
Make Workfeature Object Center
5 -Select Solid and Workfeature:Point:Object Center
Setting up Draft workspace
6 -Switch to Draft workbench
7 -Make sure only nearest snap is active
8 -Make sure Draft grid is turned off() Only Togle on/off and Nearest is active on the snap toolbar, and no grid is visible in 3d view.
Scale solid
9 -Select solid
10 -Draft:Scale
11 -Hide solid
12 -Select Centre Point for scale reference, make sure curser snaps(nearest)
13 -Go back to Tasks pane and enter scale factor in x,y,z. Make sure relative(Some times relative is not available) and copy is checked, I used 0,9 enter 0,9 enter 0,9 enter
Cut small from large
14 - Select original large solid
15 -Ctrl click new Scale solid
16 -Part:Cut
Now you should have the desired result
EDIT: Works perfectly in 0.17 Unstable as well
I have cleaned up the first file you sent and the only thing that is left is the mesh (this way we have a known start point)
Making a solid
1 -Select mesh and Part:Create shape from mesh
2 -hide mesh
3 -select shape and Part:Convert to solid
4 -hide shape
Make Workfeature Object Center
5 -Select Solid and Workfeature:Point:Object Center
Setting up Draft workspace
6 -Switch to Draft workbench
7 -Make sure only nearest snap is active
8 -Make sure Draft grid is turned off() Only Togle on/off and Nearest is active on the snap toolbar, and no grid is visible in 3d view.
Scale solid
9 -Select solid
10 -Draft:Scale
11 -Hide solid
12 -Select Centre Point for scale reference, make sure curser snaps(nearest)
13 -Go back to Tasks pane and enter scale factor in x,y,z. Make sure relative(Some times relative is not available) and copy is checked, I used 0,9 enter 0,9 enter 0,9 enter
Cut small from large
14 - Select original large solid
15 -Ctrl click new Scale solid
16 -Part:Cut
Now you should have the desired result
EDIT: Works perfectly in 0.17 Unstable as well
Need help? Feel free to ask, but please read the guidelines first
Re: STL to SOLID -> Scale and Subtract
cox wrote:I have found a less round about way of doing this in 0.16 without going round about way of centreing the solid, what strikes me as being the trickiest part is to understand exactly how the Draft workbench functions, its operation demands that you have good control over grid, workplane and snaps.
I have cleaned up the first file you sent and the only thing that is left is the mesh (this way we have a known start point)
Making a solid
1 -Select mesh and Part:Create shape from mesh
2 -hide mesh
3 -select shape and Part:Convert to solid
4 -hide shape
Make Workfeature Object Center
5 -Select Solid and Workfeature:Point:Object Center
Setting up Draft workspace
6 -Switch to Draft workbench
7 -Make sure only nearest snap is active
8 -Make sure Draft grid is turned off() Only Togle on/off and Nearest is active on the snap toolbar, and no grid is visible in 3d view.
Scale solid
9 -Select solid
10 -Draft:Scale
11 -Hide solid
12 -Select Centre Point for scale reference, make sure curser snaps(nearest) =>from here on I get stuck and it doesn't show a larger solid shape
13 -Go back to Tasks pane and enter scale factor in x,y,z. Make sure relative(Some times relative is not available) and copy is checked, I used 0,9 enter 0,9 enter 0,9 enter
Cut small from large
14 - Select original large solid
15 -Ctrl click new Scale solid
16 -Part:Cut
Now you should have the desired result
EDIT: Works perfectly in 0.17 Unstable as well
Crying in my sleep, it doesn't work when I do it. How can this be so hard for me. I literally following every step and it doesn't work...[attachment=0]cryingxtimestry.FCStd[/attachment]
Re: STL to SOLID -> Scale and Subtract
Ok, I am starting to believe that something is sometimes interfering with the Draft:Scale GUI, snaps workplane?
Let's go the python route:
If you are using the nytest.FCStd file the names and positions should be ok, if not change as necessary.
This position comes from WorkFeature Object center command. FreeCAD.Vector(-2.44465270249e-09,-4.0,0.494028627872)
In the Python console paste in these lines one by one
Please report back how it went.
Let's go the python route:
If you are using the nytest.FCStd file the names and positions should be ok, if not change as necessary.
This position comes from WorkFeature Object center command. FreeCAD.Vector(-2.44465270249e-09,-4.0,0.494028627872)
In the Python console paste in these lines one by one
Code: Select all
obj = App.getDocument("nytest").getObject("_0160422a_V001Dodecahedron001_solid001")
Code: Select all
Draft.scale(obj,delta=FreeCAD.Vector(0.9,0.9,0.9),center=FreeCAD.Vector(-2.44465270249e-09,-4.0,0.494028627872),copy=True)
Need help? Feel free to ask, but please read the guidelines first