Eplan Platform API
Eplan.EplApi.DataModel.MasterData Namespace / WindowMacro Class / Size Property

In This Topic
    Size Property (WindowMacro)
    In This Topic
    Returns the size of the macro. When available it is the size of the macro box, otherwise the graphical size (selection). If no selection was made when macro was created (for example via P8-API), it is a minimal size needed to contain all placements. If macro doesn't contain any placements, returned size is equal to (0,0).
    Syntax
    public PointD Size {get;}
    public:
    property PointD Size {
       PointD get();
    }

    Property Value

    the size of the macro

    Exceptions
    ExceptionDescription
    Thrown when the macro was not opened before or could not opened successfully.
    See Also