Skip to main content

ACP in-app scripting API 2026 R1

BooleanSelectionRule

Last update: 16.07.2026

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

Represents a boolean selection rule.

Attributes

Name Description
BooleanSelectionRule.active Active status of the object.
BooleanSelectionRule.changed Triggers an observable to dispatch a change notification.
BooleanSelectionRule.enabled Indicates whether the object is enabled.
BooleanSelectionRule.extent Extent of the rule.
BooleanSelectionRule.id ID of the object.
BooleanSelectionRule.include_rule_type include type.
BooleanSelectionRule.is_dict_item Indicates whether the object is an item in a dictionary.
BooleanSelectionRule.is_list_item Indicates whether the object is an item of a list.
BooleanSelectionRule.link_path Root path of the current node in the tree for links to this object.
BooleanSelectionRule.name Name of the object.
BooleanSelectionRule.parent Parent object in the tree.
BooleanSelectionRule.relative_rule_type relative type.
BooleanSelectionRule.root_path Root path of the current node in the tree.
BooleanSelectionRule.selection_rules Element Selection Rule of the Boolean Selection Rule.
BooleanSelectionRule.status Status of the object.
BooleanSelectionRule.status_changed Boolean flag which is set to true in C++ when up-to-date status of object changes.
BooleanSelectionRule.uid UID of the object.
BooleanSelectionRule.vertex Raises an error if the object has been removed from the graph.

Methods

Name Description
BooleanSelectionRule.add_rule(rule[, ...]) Add selection rule to boolean selection rule.
BooleanSelectionRule.find_parent(type) Steps up the tree and returns the first parent with given type.
BooleanSelectionRule.get_short_description()
BooleanSelectionRule.obj_exists() Checks if __obj still references the c++ object (has not been reset to None by self._delete) and exists in the graph.
BooleanSelectionRule.serialize() Serialize to Python string.
BooleanSelectionRule.serialize_name_and_id() Serializes the name and ID.
BooleanSelectionRule.serialize_rule_types()
BooleanSelectionRule.update()
BooleanSelectionRule.visit(visitor) Walk through the tree and let the visitor perform action on every descendant node.

Connect with Ansys