API Help
Eplan.EplApi.DataModel.MasterData Namespace / WindowMacro Class / GetBoundingBox Method

GetBoundingBox Method (WindowMacro)
Returns the bounding box of the macro. This is the size and position of the macrobox.
Syntax
public PointD[] GetBoundingBox()

Return Value

the upperleft and the lowerright point of the box. Zero if nothing was found. this are absolute coordinates.
Exceptions
ExceptionDescription
Thrown when the macro was not opened before or could not opened successfully.
Remarks
If the WindowMacro includes no macro box, both returned points will be (0,0).
See Also