Hi all,
I've come across a peculiar issue with GetArea that I was hoping to get feedback on. I noticed when a cut is made on a face, the area that GetArea() outputs will vary based on the position of the cut. The areas outputted are also wrong. Expected 92.931 in^2. Box dimensions are 10x10x5 inches. See photo and code.


I've come across a peculiar issue with GetArea that I was hoping to get feedback on. I noticed when a cut is made on a face, the area that GetArea() outputs will vary based on the position of the cut. The areas outputted are also wrong. Expected 92.931 in^2. Box dimensions are 10x10x5 inches. See photo and code.
Python:
import sys
import AlibreScript
if AlibreScriptVersion < 1110:
sys.exit('Please upgrade your copy of Alibre Design to use this script')
Units.Current = UnitTypes.Inches
Part = CurrentPart()
faces = []
areas = []
faces = Part.GetFaces()
for face in faces:
areas.append(face.GetArea())
for i in range(len(faces)):
print(faces[i], areas[i])

