Outline
Outline is a generic object that provides a bounding box/bounding outline. It supports operations to scale and transform. It also supports intersections and contains operations.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.Outline
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class Outline : IDisposable
The Outline type exposes the following members.
Constructors
Name
Description
Public Method
Outline(Outline)
Constructs a new copy of the input Outline object.
Public Method
Outline(XYZ, XYZ)
Constructor that uses a minimum and maximum XYZ point to initialize the outline.
Properties
Name
Description
Public Property
IsEmpty
Identifies if the outline represents an empty outline.
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
MaximumPoint
The maximum point of the bounding box.
Public Property
MinimumPoint
The minimum point of the bounding box.
Methods
Name
Description
Public Method
AddPoint
Adds a point to the bounding box, expanding it if the point is outside the existing boundary.
Public Method
Contains
Determine if this Outline contains the specified point to within a tolerance.
Public Method
ContainsOtherOutline
Determine if this Outline contains another Outline to within tolerance.
Public Method
Dispose
Releases all resources used by the Outline
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetDiagonalLength
Get the length of outline’s diagonal. If called on empty outline, 0. is returned
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
Intersects
Determine if this Outline intersects the input Outline to within a specified tolerance.
Public Method
IsScaleValid
Checks if given scale is valid. Should be greater than zero.
Public Method
Scale
Scales the bounding box by given scale.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)