zospy.functions.nce.get_object_data

zospy.functions.nce.get_object_data#

zospy.functions.nce.get_object_data(obj: ZOSAPI.Editors.NCE.INCERow) ZOSAPI.Editors.NCE.IObject#

Returns the object-specific data.

Deprecated since version 1.2.0: get_object_data will be removed in ZOSPy 2.0.0, as this conversion is now implemented in zospy.api.codecs.

Parameters:
obj: ZOSAPI.Editors.NCE.INCERow

The Row/Object for which the data is requested.

Returns:
ZOSAPI.Editors.NCE.IObject

The object-specific data with the inherited implementation.

Examples

>>> import zospy as zp
>>> zos = zp.ZOS()
>>> zos.connect_as_extension()
>>> oss = zos.get_primary_system()
>>> oss.make_nonsequential()
>>> detector_object = oss.NCE.GetObjectAt(1)
>>> detector_type = detector_object.GetObjectTypeSettings(zp.constants.Editors.NCE.ObjectType.DetectorRectangle)
>>> detector_object.ChangeType(detector_type)
>>> detector_data = zp.functions.nce.get_object_data(detector_object)
>>> number_of_x_pixels = detector_data.NumberXPixels