Python scripting - Technology callbacks

PostInitManufacturingGeometry

 

The callback PostInitManufacturingGeometry(CENPyOlpTech_MfGeoInitOperator) is called just after the kernel initializes the manufacturing geometry.

 

It can be used to:

- get attribute values

- set attribute values

- output to the log

 

The callback is defined inthe %TechnologyName%.py file.

 

 

PostInitManufacturingGeometry

 

 

[Example]

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

 

def PostInitManufacturingGeometry(TechMfGeoInitOperator):

   currentProcessGeometryOperator = TechMfGeoInitOperator.GetCurrentProcessGeometryOperator()   

   regshapeCenterMatrix = currentProcessGeometryOperator.GetRegshapeCenter()

   myPointPosition = regshapeCenterMatrix.GetPosition()     

   myPointX = myPointPosition.GetX()   

   logOperator.LogDebug('myPointX: ' + str(myPointX))

   myPointY = myPointPosition.GetY()

   myPointZ = myPointPosition.GetZ()  

 


PostInitManufacturingGeometry_Ex

 


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