This content has been marked as final.
Show 4 replies
-
Re: Macro to Measure Perimeter of a Section Face
Amen Allah Jlili May 9, 2017 9:03 PM (in response to Brian Ninni)Instead of using IMeasure which takes a lot of time. Get the outer most ILoop2 of the face and sum of the lengths of all underlying curves of the edges making the outside loop. Use ICurve::GetLength3 to get the length. ICurve::GetLength is pretty buggy.
Best,
Amen
CADHero.com-
Re: Macro to Measure Perimeter of a Section Face
Brian Ninni May 9, 2017 7:31 PM (in response to Amen Allah Jlili)Thank you, that worked and the value matches what the Measure window displays when using the UI.
-
-
Re: Macro to Measure Perimeter of a Section Face
Brian Ninni May 9, 2017 7:31 PM (in response to Brian Ninni)As an alternative to Amen's answer, I was able to convert the section face into a "real" face by performing the following:
myFace = myFace.CreateSheetBody().GetFirstFace
-
Re: Macro to Measure Perimeter of a Section Face
Amen Allah Jlili May 9, 2017 7:33 PM (in response to Brian Ninni)YEYYYY!