Skip to main content
Version: 2026R1

OrientedSelectionSet

class compolyx.OrientedSelectionSet(graph, obj, parent=None)

Class to represent oriented selection set.

Attributes

NameDescription
OrientedSelectionSet.activeActive status of object
OrientedSelectionSet.auto_draping_directionAutomatic selection of draping direction
OrientedSelectionSet.boundariesGet the boundaries of the Oriented Selection Set
OrientedSelectionSet.drapingFlag for using draping or not
OrientedSelectionSet.draping_directionThe direction in which the draping starts
OrientedSelectionSet.draping_material_modelDraping material model
OrientedSelectionSet.draping_mesh_sizeThe mesh size for draping
OrientedSelectionSet.draping_objDraping representation
OrientedSelectionSet.draping_seed_pointThe seed point where the draping starts.
OrientedSelectionSet.draping_ud_coefficientUD draping coefficient
OrientedSelectionSet.element_setsElement Sets of the oriented element set
OrientedSelectionSet.elementsElements of the Oriented Selection Set
OrientedSelectionSet.enabledWhether this object is currently enabled or not
OrientedSelectionSet.idID of object
OrientedSelectionSet.is_dict_itemSpecifies whether the object is an item of a dict
OrientedSelectionSet.is_list_itemSpecifies whether the object is an item of a list
OrientedSelectionSet.link_pathRoot path of the current node in the tree for links to this object
OrientedSelectionSet.nameName of object
OrientedSelectionSet.normalsGet the Normals of the Oriented Selection Set
OrientedSelectionSet.orientation_directionThe Orientation Direction of the Oriented Element set
OrientedSelectionSet.orientation_pointThe Orientation Point of the Oriented Selection Set
OrientedSelectionSet.orientationsGet the oriented normals of the Oriented Selection Set
OrientedSelectionSet.parentParent object in tree
OrientedSelectionSet.ref_directionsGet the Refernce Directions of the Oriented Selection Set
OrientedSelectionSet.reference_direction_fielda lookup table column or None for external reference directions
OrientedSelectionSet.root_pathRoot path of the current node in the tree
OrientedSelectionSet.rosette_selection_methodSelection Method for Rosettes of the Oriented Selection Set
OrientedSelectionSet.rosettesRosettes of the Oriented Selection Set
OrientedSelectionSet.rotation_angleAngle to rotate the reference directions around the orientation directions (in degree)
OrientedSelectionSet.selection_rulesSelection Rules of the Oriented Selection Set
OrientedSelectionSet.statusStatus of the object
OrientedSelectionSet.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes
OrientedSelectionSet.uidUID of object
OrientedSelectionSet.use_default_draping_mesh_sizeWhether to use a default size for the draping mesh.
OrientedSelectionSet.vertexThis will throw an error if the object has been removed from the graph

Methods

NameDescription
OrientedSelectionSet.add_element_set(element_set)Add element set to oriented selection set
OrientedSelectionSet.add_rosette(rosette)Add rosette to oriented selection set
OrientedSelectionSet.add_selection_rule(rule)Add selection rule to oriented selection set
OrientedSelectionSet.clear_element_sets()Clear element sets of oriented selection set
OrientedSelectionSet.clear_rosettes()Clear rosettes of oriented selection set
OrientedSelectionSet.clear_selection_rules()Clear selection rules of oriented selection set
OrientedSelectionSet.find_parent(type)Function steps up the tree and returns the first parent with given type
OrientedSelectionSet.get_short_description()
OrientedSelectionSet.normal_from_id(id)Returns the element normal
OrientedSelectionSet.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
OrientedSelectionSet.reference_element_id()
OrientedSelectionSet.remove_element_set(...)Remove element set from oriented selection set
OrientedSelectionSet.remove_rosette(rosette)Remove rosette from oriented selection set
OrientedSelectionSet.remove_selection_rule(rule)Remove rule from oriented selection set
OrientedSelectionSet.save_flat_wrap(filename)Write the flatwrap to .dxf, .iges, or .step file
OrientedSelectionSet.serialize()Serialize to Python string
OrientedSelectionSet.serialize_name_and_id()Helper function to serialize name and ID
OrientedSelectionSet.update()
OrientedSelectionSet.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node
OrientedSelectionSet.write_boundaries(filename)Write boundaries in .iges/.step format