Python scripting - Common operators

CENPyOlpSystemAttribSetter

Previous  Chapter  Next

 

The object of the CENPyOlpSystemAttribSetter class may be used to assign values to the system attributes.

 

[Example 1]

 

def PostTechInitAttributes(TechAttribInitOperator):  

   attribSetter = TechAttribInitOperator.GetAttribSetter()

   sysAttribSetter = attribSetter.GetSystemAttribSetter()

 

 

Methods

 

SetTranslationX(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetTranslationX(0.4)

 


 

SetTranslationY(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetTranslationY(-0.8)

 


 

SetTranslationZ(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetTranslationZ(0.5)

 


 

SetRotationRx(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetRotationRx(1.5708)

 


 

SetRotationRy(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetRotationRy(0.785398)

 


 

SetRotationRz(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetRotationRz(0,27)

 


 

SetCutterCompensation(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetCutterCompensation(0.159)

 


 

SetOffsetX(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetOffsetX(0.51)

 


 

SetOffsetY(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetOffsetY(0.51)

 


 

SetOffsetZ(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetOffsetZ(0.51)

 


 

SetSheetOffset(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetSheetOffset(0.9)

 


 

SetOffsetRx(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetOffsetRx(1.5)

 


 

SetOffsetRy(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetOffsetRy(2.5)

 


 

SetOffsetRz(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetOffsetRz(0.3)

 


 

SetAlignmentRx(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetAlignmentRx(0.04)

 


 

SetAlignmentRz(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetAlignmentRz(16)

 


 

SetApproximType(approxType: unsigned int, overrideMode: AttribOverrideMode)

 

o

approxType

Approximation type constant.  (see ContourApproximationType )

 

o

overrideMode

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]

   sysAttribSetter.SetApproximType(CONTOURAPPROX_CIRCLIN)

 


 

SetMaxSag(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetMaxSag(5.6)

 


 

SetMaxDist(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetMaxDist(1.4)

 


 

SetMinRadius(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetMinRadius(0.012)

 


 

SetMaxRadius(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetMaxRadius(9.8)

 


 

SetStartPointValue(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value [0, 1.0]

 

o

overrideMode

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]

   sysAttribSetter.SetStartPointValue(0.2)

 


 

SetEndPointValue(val: float, overrideMode: AttribOverrideMode)

 

o

val

Attribute value [-1.0, 0]

 

o

overrideMode

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]

   sysAttribSetter.SetEndPointValue(-0.15)

 


 

SetApproachDirection(dir: bool, overrideMode: AttribOverrideMode)

 

o

dir

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetApproachDirection(False)

 


 

SetProcessFlowDirection(dir: bool, overrideMode: AttribOverrideMode)

 

o

dir

Attribute value

 

o

overrideMode

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]

   sysAttribSetter.SetProcessFlowDirection(False)

 


 

 


Previous
Previous page
Chapter
Chapter page
Next
Next page