Skip to main content
Version: 2026R1

FieldDefinition

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

Class to represent field definition.

Attributes

NameDescription
FieldDefinition.activeField Definition is active
FieldDefinition.enabledWhether this object is currently enabled or not
FieldDefinition.field_variable_nameThe name of the field variable defined
FieldDefinition.full_mappingWhether the field is interpolated to the shell reference surface or to the actual ply-position by taking into account the shell offset; in solid models the interpolation takes always place at the actual ply position
FieldDefinition.idID of object
FieldDefinition.is_dict_itemSpecifies wether the object is an item of a dict
FieldDefinition.is_list_itemSpecifies wether the object is an item of a list
FieldDefinition.link_pathRoot path of the current node in the tree for links to this object
FieldDefinition.lockedReturns the locked status of the Field Definition
FieldDefinition.nameName of object
FieldDefinition.parentParent object in tree
FieldDefinition.root_pathRoot path of the current node in the tree
FieldDefinition.scalar_fieldLook-up table column used with this field definition
FieldDefinition.scope_entitiesThe entities defining the scope of the field definition
FieldDefinition.statusStatus of the object
FieldDefinition.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes
FieldDefinition.uidUID of object
FieldDefinition.vertexThrows an error if the object has been removed from the graph

Methods

NameDescription
FieldDefinition.clear_field_definition()
FieldDefinition.clear_scope_entities()
FieldDefinition.find_parent(type)Steps up the tree and returns the first parent with given type
FieldDefinition.get_short_description()
FieldDefinition.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
FieldDefinition.serialize()Serialize to Python string
FieldDefinition.serialize_name_and_id()Helper function to serialize name and ID
FieldDefinition.update()
FieldDefinition.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node