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

In This Topic
    GetBoundingBox Method (WindowMacro)
    In This Topic
    Returns the bounding box of the macro. This is the size and position of the macrobox.
    Syntax
    public PointD[] GetBoundingBox()
    public:
    array<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