I was trying to improve one of the several pieces of code I found on the forum that flatten sheets. Those pieces of code don´t flatten circular sheets. I use flatpatternmodel.flatpatterns.add(largestedge, objBiggestface, largestedge.endvertex, solidedgeconstants.flattenpatternmodeltypeconstant
I changed the largestedge to be a circular edge if there´s is no linear edge on the model, but does anybody have a clue about the vertex I have to use? since a circular edge doesn´t have start or end points.
Solved! Go to Solution.
Maybe I didn´t explained myself but I was talking about a flat sheet where there´s no linear edges cos the outside shape is a circle.
I finally found a way to auto-flatten a sheet with no linear-edges. The problem was obvious, I didn´t have a linear edge so no vertex to use the method.
The solution was not so obviuos, I used this
It´s odd but using as the referencevertex the referenceedge the method works.