Attrib Group
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpAttribGroup |
| Module | cenpylib.CENPyOlpAttribGroup |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 4 |
Quick Start
# Boilerplate Example
attribGroup = ... # obtained from the runtime context
result = attribGroup.GetName()Method Index
| Method | Returns | Summary |
|---|---|---|
AddAttribute | — | Add an attribute to attribute group. |
GetName | str | Get name of attribute group. |
IsAttributeInGroup | bool | Check if attribute with given name is contained in group |
GetAttributeNames | list | Get names of attributes in attribute group. |
Query Methods
GetName
def GetName() -> strGet name of attribute group.
Returns: str — name of attribute group
IsAttributeInGroup
def IsAttributeInGroup(attributeName: str) -> boolCheck if attribute with given name is contained in group
Parameters:
| Name | Type | Description |
|---|---|---|
attributeName | str | name of attribute to be checked |
Returns: bool — True: is contained; False: is not contained
GetAttributeNames
def GetAttributeNames() -> listGet names of attributes in attribute group.
Returns: list — names of attributes in attribute group
Mutation Methods
AddAttribute
def AddAttribute(attribute: CENPyOlpAttribute)Add an attribute to attribute group.
Parameters:
| Name | Type | Description |
|---|---|---|
attribute | CENPyOlpAttribute | attribute to be added |
Related Types
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?