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.flattenpatternmodeltypeconstants.igflattenpatternmodeltypeflattenanything)
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.