Extract shell thickness through scripting
Pernelle Marone-Hitz
Member, Moderator, Employee Posts: 871
✭✭✭✭
Answers
-
The following function can be used:
def ExtractShellThickness(): ''' Extract thickness values for shell bodies ''' listExtractShellThickness = [] for part in ExtAPI.DataModel.Project.Model.Geometry.Children: for body in part.Children: if body.Suppressed is False: geoBody = body.GetGeoBody() if geoBody.BodyType.ToString() == "GeoBodySheet": name = body.Name.ToString() thicknessValue = round(body.Thickness.Value, 5) thicknessUnit = body.Thickness.Unit listExtractShellThickness.append([ str(name), str(thicknessValue) + str(thicknessUnit) ]) return listExtractShellThickness
0