Skip to main content
Version: 2026R1

ModelingPly

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

Class to represent modeling ply.

Attributes

NameDescription
ModelingPly.activeSequence Entity is active
ModelingPly.angle_1_fieldAngle 1 Correction field
ModelingPly.angle_2_fieldAngle 2 Correction field
ModelingPly.areaArea of the Modeling Ply
ModelingPly.auto_draping_directionAutomatic selection of draping direction.
ModelingPly.core_geometryAssigned Core Geometry
ModelingPly.draped_fiber_directionsGet the Draped Fiber Directions of the Modeling Ply
ModelingPly.drapingType of draping to be used
ModelingPly.draping_directionThe direction in which the draping starts.
ModelingPly.draping_mesh_sizeThe mesh size for draping.
ModelingPly.draping_objDraping properties of the Modeling Ply
ModelingPly.draping_seed_pointThe seed point where the draping starts.
ModelingPly.draping_thickness_correctionThickness correction for draping.
ModelingPly.enabledWhether this object is currently enabled or not.
ModelingPly.fiber_directionsGet the Fiber Directions of the Modeling Ply
ModelingPly.global_ply_nr
ModelingPly.idID of object
ModelingPly.is_dict_itemSpecifies wether the object is an item of a dict
ModelingPly.is_list_itemSpecifies wether the object is an item of a list
ModelingPly.link_pathRoot path of the current node in the tree for links to this object
ModelingPly.nameName of object
ModelingPly.number_of_layersNumber of layers of the Modeling Ply
ModelingPly.on_sampling_pointFlag if the modeling ply is on sampling point
ModelingPly.orientationsGet the oriented normals of the Modeling Ply
ModelingPly.oriented_selection_setsOriented Selection Sets of the Modeling Ply
ModelingPly.parentParent object in tree
ModelingPly.ply_anglePly Angle of the Modeling Ply
ModelingPly.ply_material
ModelingPly.ply_offsetsGet the offsetted Modeling Ply
ModelingPly.pricePrice of the Modeling Ply
ModelingPly.production_pliesProduction Plies of the Modeling Ply
ModelingPly.ref_directionsGet the Reference Directions of the Modeling Ply
ModelingPly.root_pathRoot path of the current node in the tree
ModelingPly.selection_rulesElement Selection Rule of the Modeling Ply.
ModelingPly.statusStatus of the object
ModelingPly.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes.
ModelingPly.taper_edgesTaper Edges of the Modeling Ply.
ModelingPly.thickness_definitionType of thickness-definition to be used
ModelingPly.thickness_fieldLookUpTable Column with tabular thicknesses or None
ModelingPly.thickness_field_typeThe type of the Thickness field 'absolute' or 'relative'
ModelingPly.uidUID of object
ModelingPly.use_default_draping_mesh_sizeEnable this property to use a default size for the draping mesh.
ModelingPly.vertexThis will throw an error if the object has been removed from the graph.
ModelingPly.weightWeight of the Modeling Ply

Methods

NameDescription
ModelingPly.add_oriented_selection_set(...)Add oriented selection set.
ModelingPly.add_selection_rule(rule[, ...])Add rule to modeling ply.
ModelingPly.add_taper_edge(taper_edge, angle)Add taper edge to modeling ply.
ModelingPly.boundaries([offset_type])
ModelingPly.clear_oriented_selection_sets()Clear all oriented selection sets of the modeling ply.
ModelingPly.clear_selection_rules()Clear all selection_rules assigned to the modeling ply.
ModelingPly.clear_taper_edges()Clear all taper_edges assigned to the modeling ply.
ModelingPly.direction_arrows([arrow_length, ...])Direction arrows of the ply.
ModelingPly.draping_direction_from_calculation([...])Draping direction used for draping calculation.
ModelingPly.draping_seed_point_from_calculation([...])Draping seed point used for draping calculation.
ModelingPly.element_normal_is_equal([...])Returns 1 if the element normal is equal the orientation of the modeling ply, else -1.
ModelingPly.find_parent(type)Function steps up the tree and returns the first parent with given type.
ModelingPly.get_short_description()
ModelingPly.obj_exists()Checks if __obj still references the c++ object (i.e. has not been reset to None by self._delete) AND exists in the graph.
ModelingPly.orientation_at_element([element_id])Returns the orientation of this modeling ply for a certain element.
ModelingPly.remove_oriented_selection_set(...)Remove oriented selection set from modeling ply.
ModelingPly.remove_selection_rule(rule)Remove rule from modeling ply.
ModelingPly.remove_taper_edge(taper_edge)Remove taper_edge from modeling ply.
ModelingPly.serialize()Serialize to Python string.
ModelingPly.serialize_name_and_id()Helper function to serialize name and ID.
ModelingPly.update()
ModelingPly.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node.
ModelingPly.write_boundaries(filename[, ...])Write boundaries in iges/step format.