### 6.5.12. ModelingPly

`class compolyx.ModelingPly`(graph, obj, parent=None, element_vd=None)

Class to represent Modeling Ply

`add_oriented_selection_set`(oriented_selection_set)

  Add Oriented Selection Set

  Parameters

  - oriented_selection_set : The Oriented Selection Set to be assigned to ModelingPly

`add_selection_rule`(rule, template_rule=False, rule_values=())

  Add Rule to Modeling Ply

  Parameters

  - rule : The Rule to be added to the Modeling Ply

  - template_rule : Bool

  - rule_values : Parameters of the template rule

`add_taper_edge`(taper_edge, angle, offset=0.0)

  Add Taper Edge to Modeling Ply

  Parameters

  - taper_edge : The Taper Edge to be added to the Modeling Ply

  - angle : Angle for tapering

  - offset : Offset for tapering

`angle_1_field`

  Angle 1 Correction field

`angle_2_field`

  Angle 2 Correction field

`area`

  Area of the Modeling Ply

`auto_draping_direction`

  Automatic selection of draping direction.

`clear_oriented_selection_sets`()

  Clear all Oriented Selection Sets of the Modeling Ply

`clear_selection_rules`()

  Clear all selection_selection_rules assigned to the Modeling Ply

`clear_taper_edges`()

  Clear all taper_edges assigned to the Modeling Ply

`core_geometry`

  Assigned Core Geometry

`direction_arrows`(arrow_length=None, arrow_type='standard_arrow', offset_type='no_offset')

  Direction arrows of the ply

  Parameters

  - arrow_length : length of the arrow

  - arrow_type : 'standard_arrow' (default), 'no_arrow', 'half_arrow'

  - offset_type : 'no_offset' (default), 'bottom_offset', 'middle_offset', 'top_offset'

`draped_fiber_directions`

  Get the Draped Fiber Directions of the Modeling Ply

`draping`

  Type of draping to be used

`draping_direction`

  The direction in which the draping starts.

`draping_direction_from_calculation`(analysis_ply=None)

  Draping direction used for draping calculation

`draping_mesh_size`

  The mesh size for draping.

`draping_obj`

  Draping properties of the Modeling Ply

`draping_seed_point`

  The seed point where the draping starts.

`draping_seed_point_from_calculation`(analysis_ply=None)

  Draping seed point used for draping calculation

`draping_thickness_correction`

  Thickness correction for draping.

`element_normal_is_equal`(element_id=None, normal=None)

  Returns 1 if the element normal is equal the orientation of the modeling ply, else -1

  Parameters

  - element_id : Element label

  - normal : Reference normal direction

`fiber_directions`

  Get the Fiber Directions of the Modeling Ply

`number_of_layers`

  Number of layers of the Modeling Ply

`on_sampling_point`

  Flag if the modeling ply is on sampling point

`orientation_at_element`(element_id=None)

  Returns the orientation of this modeling ply for a certain element. If the element does not belong to the modeling ply the return value is [0,0,0]

  Parameters

  - element_id : Element label

`orientations`

  Get the oriented normals of the Modeling Ply

`oriented_selection_sets`

  Oriented Selection Sets of the Modeling Ply

`ply_angle`

  Ply Angle of the Modeling Ply

`ply_offsets`

  Get the offsetted Modeling Ply

`price`

  Price of the Modeling Ply

`production_plies`

  Production Plies of the Modeling Ply

`ref_directions`

  Get the Reference Directions of the Modeling Ply

`remove_oriented_selection_set`(oriented_selection_set)

  Remove Oriented Selection Set from Modeling Ply

  Parameters

  - oriented_selection_set : The Oriented Selection Set to be removed from ModelingPly

`remove_selection_rule`(rule)

  Remove Rule from Modeling Ply

  Parameters

  - rule : The Rule to be removed from Modeling Ply

`remove_taper_edge`(taper_edge)

  Remove taper_edge from Modeling Ply

  Parameters

  - taper_edge : The taper_edge to be removed from Modeling Ply

`selection_rules`

  Element Selection Rule of the Modeling Ply.

`serialize`()

  Serialize to Python string

`taper_edges`

  Taper Edges of the Modeling Ply.

`thickness_definition`

  Type of thickness-definition to be used

`thickness_field`

  LookUpTable Column with tabular thicknesses or None

`thickness_field_type`

  The type of the Thickness field 'absolute' or 'relative'

`weight`

  Weight of the Modeling Ply

`write_boundaries`(filename, format=None, offset_type='no_offset', with_direction_arrows=False, arrow_length=None, arrow_type='standard_arrow')

  Write boundaries in iges/step format

  Parameters

  - filename : output file

  - format : 'iges', 'step', None (automatic format recognition)

  - offset_type : 'no_offset' (default), 'bottom_offset', 'middle_offset', 'top_offset'

  - with_direction_arrows : the element directions should be written to

  - arrow_length : length of the direction arrows (default is average element edge size)

  - arrow_type : type to be used as arrows ('standard_arrow'(default), 'no_arrow', 'half_arrow')

Release 18.2 - © ANSYS, Inc. All rights reserved.