Skip to main content
Version: Next

PublishedParameter

class compolyx.PublishedParameter(name, parent, source_object=None, source_property='', user_script='', category='input', acp_type=None, description='', lower_limit=None, upper_limit=None, cyclic=False, float_list=[], string_list=[], unbound_value=None)

Class to represent parameters which are linked to the Ansys Workbench application.

Attributes

NameDescription
PublishedParameter.acp_typeACP parameter type
PublishedParameter.ansys_typeANSYS parameter type where ACP parameter is mapped to
PublishedParameter.categoryShould be one of: input, unbound_input, output or expression_output
PublishedParameter.cyclicWhether a float value is cyclic or not
PublishedParameter.descriptionA human-readable description of the linked parameter
PublishedParameter.enabledWhether this object is currently enabled or not
PublishedParameter.float_listA list of possible values for a float
PublishedParameter.is_dict_itemSpecifies whether the object is an item of a dict
PublishedParameter.is_list_itemSpecifies whether the object is an item of a list
PublishedParameter.link_pathRoot path of the current node in the tree for links to this object
PublishedParameter.lower_limitThe lower limit for numeric values
PublishedParameter.nameName of object
PublishedParameter.parentParent object in tree
PublishedParameter.root_pathRoot path of the current node in the tree
PublishedParameter.source_object
PublishedParameter.source_property
PublishedParameter.string_listA list of possible values
PublishedParameter.unitThe unit associated with the actual parameter value
PublishedParameter.upper_limitThe upper limit for numeric values
PublishedParameter.user_script
PublishedParameter.valueThe current parameter value
PublishedParameter.wb_valueThe parameter value as it is represented in the ANSYS Workbench application

Methods

NameDescription
PublishedParameter.find_parent(type)Function steps up the tree and returns the first parent with given type
PublishedParameter.get_source_str()Returns the active source string
PublishedParameter.serialize()Serialize to Python string
PublishedParameter.update()
PublishedParameter.user_script_default()
PublishedParameter.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node