The object of the CENPyOlpAttribGetter class may be used to obtain values of attributes.
[Example 1]
def PostTechInitAttributes(techAttribInitOperator):
attribGetter = techAttribInitOperator.GetAttribGetter()
def PostInitManufacturingGeometry(techMfGeoInitOperator):
attribGetter = techMfGeoInitOperator.GetAttribGetter()
[Example 2]
def PostWmInitAttributes(wmAttribInitOperator):
attribGetter = wmAttribInitOperator.GetAttribGetter()
•
|
GetInteger(attributeName: string): int
|
|
|
The name of the attribute
|
|
|
The value of the attribute
|
[Example]
valOfMyIntAttrib = attribGetter.GetInteger('MyIntAttribute')
•
|
GetDouble(attributeName: string): float
|
|
|
The name of the attribute
|
|
|
The value of the attribute
|
[Example]
valOfMyDoubleAttrib = attribGetter.GetDouble('MyDoubleAttribute')
•
|
GetString(attributeName: string): string
|
|
|
The name of the attribute
|
|
|
The value of the attribute
|
[Example]
valOfMyStrAttrib = attribGetter.GetString('MyStringAttribute')
•
|
GetBool(attributeName: string): bool
|
|
|
The name of the attribute
|
|
|
The value of the attribute
|
[Example]
valOfMyBoolAttrib = attribGetter.GetBool('MyBoolAttribute')
•
|
GetEnumIndex(attributeName: string): integer
|
|
|
The name of the attribute
|
|
|
The index of the attribute
|
[Example]
indexOfMyEnumAttrib = attribGetter.GetEnumIndex('MyEnumAttribute')
[Example]
foundAttribute = attribGetter.GetAttributeByName('MyIntAttribute')
[Example]
foundAttribute = attribGetter.GetAttributeBoolByName('MyBoolAttribute')
[Example]
foundAttribute = attribGetter.GetAttributeEnumByName('MyEnumAttribute')
[Example]
foundAttribute = attribGetter.GetAttributeDoubleByName('MyDoubleAttribute')
[Example]
sysAttribGetter = attribGetter.GetSystemAttribGetter()
|
|
name of table attribute to search for
|
|
|
ID the table needs to have (optional)
|
Returns the table attribute object. If containsCellId is set, it will check if there are two tables with the given name and returns the one which contains the ID.
First it will check the program table and if this table does not contain the ID it will check the controller table.
[Example]
myTable = attribGetter.GetAttributeTableByName("MyTable")
myTable2 = attribGetter.GetAttributeTableByName("MyTable2", "ID_123")
•
|
GetScopeSortedTableRows(tableName: string): list
|
|
|
List of strings with all IDs combined of table from controller and program
|
Gets all IDs (first column) from both tables program and controller with the given name (no duplicates of IDs)
[Example]
ids = attribGetter.GetScopeSortedTableRows("MyTable")
|