PostInitFertigungsgeometrie
The callback PostInitManufacturingGeometry (CENPyOlpTech_MfGeoInitOperator) is called just after the kernel initializes the manufacturing geometry.
Es kann verwendet werden, um:
-
Attributwerte abrufen
-
Attributwerte festlegen
-
Ausgabe in das Protokoll
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?