Creates a new child PipeIdealization.
Examples
"""The following example creates a pipeidealization on the first face of the first body for the first part."""
model = ExtAPI.DataModel.Project.Model
pipe_idealization = model.Analyses[0].AddPipeIdealization() # Add a pipeidealization.
part1 = model.Geometry.Children[0] # Get the first part.
body1 = part1.Children[0] # Get the first body.
face1 = body1.GetGeoBody().Faces[0] # Get the first face of the body.
selection = ExtAPI.SelectionManager.CreateSelectionInfo(SelectionTypeEnum.GeometryEntities) # Create an empty selection.
selection.Entities = [face1] # Add the face to the selection.
pipe_idealization.GeometrySelection = selection # Assign the selection to the pipeidealization.
pipe_idealization.Factor = 3 # Set the factor value.
Return Value
Returns the PipeIdealization created, if successful