Skip to Content

Resource

Quick Facts

PropertyValue
ClassCENPyOlpResource
Modulecenpylib.CENPyOlpResource
Packagecenpylib
ReleaseR2026.1
Methods17

Quick Start

# Boilerplate Example resource = ... # obtained from the runtime context result = resource.GetName()

Method Index

MethodReturnsSummary
GetNamestrGet the resource name.
GetManufacturerstrGet the resource manufacturer.
GetSeriesstrGet the resource series.
GetModelstrGet the resource model.
GetItemTypeintGet the item type of the resource as unsigned integer.
GetItemSubTypeintGet the item sub type of the resource as unsigned integer.
GetAllPortslist[CENPyOlpPort]Get all ports that are currently active in this resource.
GetAllJointslist[CENPyOlpJoint]Get all joints that are currently active in this resource.
GetPortslist[CENPyOlpPort]Get all ports of a specific value type and direction that are currently active in this resource.
GetAttributeByNameCENPyOlpAttributeGet access to the attribute by name.
GetValueOfIntegerAttributeByNameintGet access to the integer attribute by name.
GetValueOfFloatAttributeByNamefloatGet access to the float attribute by name.
GetValueOfStringAttributeByNamestrGet access to the string attribute by name.
GetValueOfBoolAttributeByNameboolGet access to the bool attribute by name.
GetHomePositionslist[CENPyOlpHomePosition]Get all home positions of this resource
GetBaseFrameslist[CENPyOlpFrame]Get all base frames of this resource.
GetChildFrameslist[CENPyOlpFrame]Get all child frames of this resource.

Query Methods

GetName

def GetName() -> str

Get the resource name.

Returns: str — Resource name.

GetManufacturer

def GetManufacturer() -> str

Get the resource manufacturer.

Returns: str — Resource manufacturer.

GetSeries

def GetSeries() -> str

Get the resource series.

Returns: str — Resource series.

GetModel

def GetModel() -> str

Get the resource model.

Returns: str — Resource model.

GetItemType

def GetItemType() -> int

Get the item type of the resource as unsigned integer.

Returns: int — Item type of the resource as unsigned integer.

GetItemSubType

def GetItemSubType() -> int

Get the item sub type of the resource as unsigned integer.

Returns: int — Item sub type of the resource as unsigned integer.

GetAllPorts

def GetAllPorts() -> list[CENPyOlpPort]

Get all ports that are currently active in this resource.

Returns: list[CENPyOlpPort] — List of CENPyOlpPort objects, found ports.

GetAllJoints

def GetAllJoints() -> list[CENPyOlpJoint]

Get all joints that are currently active in this resource.

Returns: list[CENPyOlpJoint] — List of CENPyOlpJoint objects, found joints.

GetPorts

def GetPorts(valueType: int, direction: int) -> list[CENPyOlpPort]

Get all ports of a specific value type and direction that are currently active in this resource.

Parameters:

NameTypeDescription
valueTypeintDesired value type for the ports.
directionintDesired direction for the ports.

Returns: list[CENPyOlpPort] — List of CENPyOlpPort objects, found ports with specified value type and direction.

GetAttributeByName

def GetAttributeByName(attributeName: str) -> CENPyOlpAttribute

Get access to the attribute by name.

Parameters:

NameTypeDescription
attributeNamestrName of attribute to search for.

Returns: CENPyOlpAttribute — Attribute object.

GetValueOfIntegerAttributeByName

def GetValueOfIntegerAttributeByName(name: str) -> int

Get access to the integer attribute by name.

Parameters:

NameTypeDescription
namestrName of attribute to search for.

Returns: int — Value of the attribute.

GetValueOfFloatAttributeByName

def GetValueOfFloatAttributeByName(name: str) -> float

Get access to the float attribute by name.

Parameters:

NameTypeDescription
namestrName of attribute to search for.

Returns: float — Value of the attribute.

GetValueOfStringAttributeByName

def GetValueOfStringAttributeByName(name: str) -> str

Get access to the string attribute by name.

Parameters:

NameTypeDescription
namestrName of attribute to search for.

Returns: str — Value of the attribute.

GetValueOfBoolAttributeByName

def GetValueOfBoolAttributeByName(name: str) -> bool

Get access to the bool attribute by name.

Parameters:

NameTypeDescription
namestrName of attribute to search for.

Returns: bool — Value of the attribute.

GetHomePositions

def GetHomePositions() -> list[CENPyOlpHomePosition]

Get all home positions of this resource

Returns: list[CENPyOlpHomePosition] — List of CENPyOlpHomePosition objects, representing home positions of this resource.

GetBaseFrames

def GetBaseFrames() -> list[CENPyOlpFrame]

Get all base frames of this resource.

Returns: list[CENPyOlpFrame] — List of base frames for this resource.

GetChildFrames

def GetChildFrames() -> list[CENPyOlpFrame]

Get all child frames of this resource.

Returns: list[CENPyOlpFrame] — List of child frames for this resource.

Version Notes

This class is documented as of release R2026.1.1.

Was this page helpful?