PostInitManufacturingGeometry
The callback PostInitManufacturingGeometry (CENPyOlpTech_MfGeoInitOperator) is called just after the kernel initializes the manufacturing geometry.
Il peut être utilisé pour :
-
obtenir des valeurs d’attribut
-
Définir les valeurs des attributs
-
sortie au journal
The callback is defined in the %TechnologyName%.py file that is located in the scripts folder of the plugin.
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()Was this page helpful?