Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am working on a script that processes a design and extracts all sorts of component information (for the creation of a purchase order to my supplier).
One of the required attributes is the quantity of sheet metal folds/bends. I have happened across the FlatPattern.getBendInfo Method (and ignore my other post for the moment - refer: here).
When I run this method - I end up with 4 bends (as in - 4 x BRepEdge)... where my component has only 2 sheet metal folds. I assume there is a topside set of bends and a bottomside set of bends - but how do I know which bends are related to the top and which are related to the bottom ?
bendLinesBody = component.flatPattern.bendLinesBody
for BRepEdge in bendLinesBody.edges:
(retval, isBendUp, bendAngle) = component.flatPattern.getBendInfo(BRepEdge)
##remainder of code##
Glenn.
Solved! Go to Solution.