help on sheet metal script
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: help on sheet metal script
Looks good, but I would not like to see the dashed line cluttering the tree, if possible I would rather see it as a property "ShowDashedLine" or similar set to true or false.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: help on sheet metal script
Hi @jaisejamesjaisejames wrote: ↑Thu Jun 21, 2018 5:30 am One suggestion or Idea. During unfold, bend is created. we can also create a bend line & append it to new compound. show it as another item.
this would be a very useful feature...
We have a thread about this request:
https://forum.freecadweb.org/viewtopic. ... 31#p229621
and there are some more info here
https://github.com/shaise/FreeCAD_SheetMetal/issues/33
I agree with @chrisb that it also would be useful to have the option to choose if the line is dashed or not. When giving it to bending machine, normally they ask for non dashed line.
Thx a lot for having a look at
Re: help on sheet metal script
Does anyone have an idea how to accomplish that without clogging the tree view with extra items?
What happens if I add extra dummy edges to the model? will it work?
shai
What happens if I add extra dummy edges to the model? will it work?
shai
Re: help on sheet metal script
Hi @shaise
it would be nice if the unfolding algo would produce also 2 sketches:
- the first with the external outline of the unfolded part (the blue sketch)
- the second with the bending lines (generated in the middle of the bend) (the white sketch)
Re: help on sheet metal script
easyw,
Can you explain what manual steps did you use to generate this example,
also, how can I activate this nice axis thingy on the top right of the image?
shai
Can you explain what manual steps did you use to generate this example,
also, how can I activate this nice axis thingy on the top right of the image?
shai
Re: help on sheet metal script
Hi shai
it can be called by python as Draft.makeShape2DView function(obj, vector_view)
After that, from the Shape2DView you can use 'Draft to Sketch' to create the sketch.
it can be called by python as Draft.makeSketch(shape)
If the Unfolded part could be 'refined' correctly, only external edges would be present to then generate the main sketch.
The bending lines should be instead generated by a smart python code
https://forum.freecadweb.org/viewtopic. ... 79#p236405
I used Draft WB, Shape 2D view from Top View.
it can be called by python as Draft.makeShape2DView function(obj, vector_view)
After that, from the Shape2DView you can use 'Draft to Sketch' to create the sketch.
it can be called by python as Draft.makeSketch(shape)
If the Unfolded part could be 'refined' correctly, only external edges would be present to then generate the main sketch.
The bending lines should be instead generated by a smart python code
it is the NaviCube
https://forum.freecadweb.org/viewtopic. ... 79#p236405
Re: help on sheet metal script
Great, thanks!
Re: help on sheet metal script
Hi,
I have started implementing the "show bending lines" feature.
can anyone try the new feature and let me know if it works, before I continue?
(replace the SheetMetalUnfolder.py by the attached one)
The generated projection is a part, not a sketch. It looks like if I try to unfold by selecting a standing wall as a seed to unfold, the outcome projection can not be converted to sketch (I get a c++ error. bug?)
Thanks!
shai
I have started implementing the "show bending lines" feature.
can anyone try the new feature and let me know if it works, before I continue?
(replace the SheetMetalUnfolder.py by the attached one)
The generated projection is a part, not a sketch. It looks like if I try to unfold by selecting a standing wall as a seed to unfold, the outcome projection can not be converted to sketch (I get a c++ error. bug?)
Thanks!
shai
- Attachments
-
- SheetMetalUnfolder.py
- (63.62 KiB) Downloaded 44 times
Re: help on sheet metal script
It seems to work here. I can convert the UnfoldProjection into a Sketch using Draft->DraftToSketch.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: help on sheet metal script
Hi chrisb,
Thanks for trying.
Can try selecting different faces for the unfold, then try converting to sketch?
shai
Thanks for trying.
Can try selecting different faces for the unfold, then try converting to sketch?
shai