API Help
Eplan.EplApi.DataModel Namespace / ViewPart Class / GetBoundingBox Method

In This Topic
    GetBoundingBox Method (ViewPart)
    In This Topic
    Placement bounding box. Bounding box is a rectangle which contain this placement. It can be also used to determine placement size.
    Syntax
    public override PointD[] GetBoundingBox()
    public:
    array<PointD>^ GetBoundingBox(); override 

    Return Value

    Two points are always returned. First one is a lower-left corner and second is upper-right corner of bounding box.
    Exceptions
    ExceptionDescription
    Thrown when something went wrong in internal function.
    Thrown when bounding box cannot be calculated.
    Remarks
    In order to use function GetBoundingBox property Page can't be null. For classes Eplan.EplApi.DataModel.Graphics.DimensionItem, Eplan.EplApi.DataModel.Graphics.DimensionCircle and Eplan.EplApi.DataModel.Graphics.PlaceHolder this method will throw an exception InvalidOperationException. If GetBoundingBox is called on Eplan.EplApi.DataModel.Graphics.Text which length is zero an exception InvalidOperationException is thrown. Exception is also thrown for objects of type Function when property Eplan.EplApi.DataModel.Function.Enums.Category is set to Shielding.
    See Also