The object of the CENPyOlpAttribSetter class may be used to assign values to the attributes.
[Example 1]
def PostTechInitAttributes(techAttribInitOperator):
attribSetter = techAttribInitOperator.GetAttribSetter()
def PostInitManufacturingGeometry(techMfGeoInitOperator):
attribSetter = techMfGeoInitOperator.GetAttribSetter()
[Example 2]
def PostWmInitAttributes(wmAttribInitOperator):
attribSetter = wmAttribInitOperator.GetAttribSetter()
|
|
The name of the attribute
|
|
|
The value to be set
|
|
|
Attribute override mode is an optional parameter and may remain undefined. In this case the default value will be used: ATTRIBOVERRIDEMODE_DEFAULT. If AttribOverrideMode set as ATTRIBOVERRIDEMODE_OPERATIONLEVEL, the attribute will be found in the group or program and overridden it in the operation.
|
[Example]
attribSetter.SetInteger('MyIntAttribute', 15)
|
|
The name of the attribute
|
|
|
The value to be set
|
|
|
Attribute override mode is an optional parameter and may remain undefined. In this case the default value will be used: ATTRIBOVERRIDEMODE_DEFAULT. If AttribOverrideMode set as ATTRIBOVERRIDEMODE_OPERATIONLEVEL, the attribute will be found in the group or program and overridden it in the operation.
|
[Example]
attribSetter.SetDouble('MyDoubleAttribute', 15.8)
|
|
The name of the attribute
|
|
|
The string to be set
|
|
|
Attribute override mode is an optional parameter and may remain undefined. In this case the default value will be used: ATTRIBOVERRIDEMODE_DEFAULT. If AttribOverrideMode set as ATTRIBOVERRIDEMODE_OPERATIONLEVEL, the attribute will be found in the group or program and overridden it in the operation.
|
[Example]
attribSetter.SetString('MyStringAttribute', 'This is new string')
|
|
The name of the attribute
|
|
|
The value to be set. 0 or 1
|
|
|
Attribute override mode is an optional parameter and may remain undefined. In this case the default value will be used: ATTRIBOVERRIDEMODE_DEFAULT. If AttribOverrideMode set as ATTRIBOVERRIDEMODE_OPERATIONLEVEL, the attribute will be found in the group or program and overridden it in the operation.
|
[Example]
attribSetter.SetBool('MyBoolAttribute', False)
|
|
The name of the attribute
|
|
|
The enum index to select the active literal. The index is zero based and must be in range of literals size
|
|
|
Attribute override mode is an optional parameter and may remain undefined. In this case the default value will be used: ATTRIBOVERRIDEMODE_DEFAULT. If AttribOverrideMode set as ATTRIBOVERRIDEMODE_OPERATIONLEVEL, the attribute will be found in the group or program and overridden it in the operation.
|
[Example]
attribSetter.SetEnumIndex('MyEnumAttribute', 4)
[Example]
sysAttribSetter = attribSetter.GetSystemAttribSetter()
|