Python scripting - Common operators

CENPyOlpSystemAttribCreator

 

The object of the CENPyOlpSystemAttribCreator class may be used to initialize new system attributes.

 

[Example 1]

File: Samples\JenoptikPluginUpdated\Plugin\TechnologyPackages\LaserCuttingTechnology\Jenoptik\LaserCuttingTechnology.py

 

def PostTechInitAttributes(TechAttribInitOperator):  

   attribCreator = TechAttribInitOperator.GetAttribCreator()

   sysAttribCreator = attribCreator.GetSystemAttribCreator()

 

 

Methods

 

AddTranslationX(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   translation_x = sysAttribCreator.AddTranslationX(0.84, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddTranslationY(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   translation_y = sysAttribCreator.AddTranslationY(-0.84, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddTranslationZ(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   translation_z = sysAttribCreator.AddTranslationZ(0.16, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddRotationRx(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   rotation_rx = sysAttribCreator.AddRotationRx(180, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddRotationRy(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   rotation_ry = sysAttribCreator.AddRotationRy(90, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddRotationRz(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   rotation_rz = sysAttribCreator.AddRotationRz(15, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddCutterCompensation(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   cutterCompensation = sysAttribCreator.AddCutterCompensation(0.15, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddOffsetX(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   offset_x = sysAttribCreator.AddOffsetX(0.5, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddOffsetY(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   offset_y = sysAttribCreator.AddOffsetY(0.5, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


AddOffsetZ(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   offset_z = sysAttribCreator.AddOffsetZ(0.5, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


AddSheetOffset(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   sheetOffset = sysAttribCreator.AddSheetOffset(0.99, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddOffsetRx(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   offset_rx = sysAttribCreator.AddOffsetRx(1.55, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddOffsetRy(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   offset_ry = sysAttribCreator.AddOffsetRy(2.3, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddOffsetRz(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   offset_rz = sysAttribCreator.AddOffsetRz(0.32, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddAlignmentRx(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   alignment_rx = sysAttribCreator.AddAlignmentRx(0.05, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddAlignmentRz(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   alignment_rz = sysAttribCreator.AddAlignmentRz(15, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddApproximType(approxType : ContourApproximationType, olpAttribType: unsigned int): CENPyOlpAttributeEnum

 

o

approxType

Approximation type constant.  (see ContourApproximationType )

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeEnum class

 

[Example]

   approxim_type = sysAttribCreator.AddApproximType(CONTOURAPPROX_LIN, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddMaxSag(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   max_sag = sysAttribCreator.AddMaxSag(5.5, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddMaxDist(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   max_dist = sysAttribCreator.AddMaxDist(15, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddMinRadius(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   min_radius = sysAttribCreator.AddMinRadius(0.01, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddMaxRadius(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   max_radius = sysAttribCreator.AddMaxRadius(9.9, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddStartPoint(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   startPoint_perc = sysAttribCreator.AddStartPoint(0.1, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddEndPoint(val: float, olpAttribType: unsigned int): CENPyOlpAttributeDouble

 

o

val

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeDouble class

 

[Example]

   endPoint_perc = sysAttribCreator.AddEndPoint(0.15, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddApproachDirection(positive: bool, olpAttribType: unsigned int): CENPyOlpAttributeBool

 

o

positive

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeBool class

 

[Example]

   approach_direction = sysAttribCreator.AddApproachDirection(True, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 


 

AddAutoCreateTangentAbsolute(autoCreate: bool, olpAttribType: unsigned int): CENPyOlpAttributeBool

 

o

autoCreate

Attribute value

 

o

olpAttribType

OLP attribute use level. Is a bitmask and can be a combination of one ore more levels. (see Attribute use level )

 

o

return

Object of CENPyOlpAttributeBool class

 

[Example]

   attribute = sysAttribCreator.AddAutoCreateTangentAbsolute(False, USER_ATTRIBUTE | PROCESS_ATTRIBUTE | GLOBAL_ATTRIBUTE | OPERATION_ATTRIBUTE)

 



Previous
Page précédente
Chapter
Page principale du chapitre
Next
Page suivante