The object of the CENPyOlpProcessGeometryOperator can be used to obtain attributes and regshape information about the underlying process geometry.
[Example]
def PostInitManufacturingGeometry(mfGeoInitOperator):
pgOperator = mfGeoInitOperator.GetCurrentProcessGeometryOperator()
•
|
GetInteger(attributeName: string): int
|
|
|
The name of the attribute
|
|
|
The value of the attribute
|
[Example]
valOfMyIntAttrib = mfGeoInitOperator.GetInteger('MyIntAttribute')
•
|
GetDouble(attributeName: string): float
|
|
|
The name of the attribute
|
|
|
The value of the attribute
|
[Example]
valOfMyDoubleAttrib = mfGeoInitOperator.GetDouble('MyDoubleAttribute')
•
|
GetString(attributeName: string): string
|
|
|
The name of the attribute
|
|
|
The value of the attribute
|
[Example]
valOfMyStrAttrib = mfGeoInitOperator.GetString('MyStringAttribute')
•
|
GetBool(attributeName: string): bool
|
|
|
The name of the attribute
|
|
|
The value of the attribute
|
[Example]
valOfMyBoolAttrib = mfGeoInitOperator.GetBool('MyBoolAttribute')
•
|
GetProcessGeometryName(): string
|
|
|
The name of process geometry
|
[Example]
myProcessGeometryName = mfGeoInitOperator.GetProcessGeometryName()
|
|
0 - not regshape; 1 - is regshape;
|
[Example]
myPGisRegshape = mfGeoInitOperator.IsRegshape()
|
|
0:
|
unknown regshape
|
1:
|
circle regshape
|
2:
|
slot regshape
|
3:
|
hexagon regshape
|
4:
|
rectangle regshape
|
5:
|
quadrilateral regshape
|
6:
|
parallelogram regshape
|
7:
|
square regshape
|
8:
|
rhombus regshape
|
|
[Example]
regshapeType = mfGeoInitOperator.GetRegshapeType()
[Example]
rScenterMat = mfGeoInitOperator.GetRegshapeCenter()
•
|
GetRegshapeLength(): float
|
[Example]
regshapeLength = mfGeoInitOperator.GetRegshapeLength()
•
|
GetRegshapeHeight(): float
|
[Example]
regshapeHeight = mfGeoInitOperator.GetRegshapeHeight()
•
|
GetRegshapeRadius(): float
|
[Example]
regshapeRadius = mfGeoInitOperator.GetRegshapeRadius()
•
|
GetRegshapeCornerRadius(): float
|
|
|
Corner radius of the regshape (keyhole)
|
[Example]
regshapeCornerRadius = mfGeoInitOperator.GetRegshapeCornerRadius()
|
|
process geometry type
|
0:
|
none
|
1:
|
point
|
2:
|
contour
|
3:
|
surface
|
|
[Example]
geoType = mfGeoInitOperator.GetGeoType()
If the operator holds a process-geometry-surface, with this method it could be checked if the surface has
a boundary attached.
[Example]
hasBoundary = mfGeoInitOperator.HasBoundary()
•
|
GetContourLength(): float
|
|
|
Contour curve length in meters
|
Returns the curve length of the contour process geometry.
[Example]
length = mfGeoInitOperator.GetContourLength()
|