Frame Class

A Frame comprises three vectors at a base point in 3D space.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBFrame

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class Frame : IDisposable

The Frame type exposes the following members.

Constructors
 NameDescription
Public methodFrame Default constructor. Uses global origin and standard basis vectors.
Public methodFrame(XYZ, XYZ, XYZ, XYZ) Constructor that takes the frame's base point and three basis vectors.
Top
Properties
 NameDescription
Public propertyBasisX The first basis vector of the frame.
Public propertyBasisY The second basis vector of the frame.
Public propertyBasisZ The third basis vector of the frame.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyOrigin The frame's base point.
Top
Methods
 NameDescription
Public methodStatic memberCanDefineRevitGeometry Tests whether the supplied Frame object may be used to define a Revit curve or surface. In order to satisfy the requirements the Frame must be orthonormal and its origin is expected to lie within the Revit design limits IsWithinLengthLimits(XYZ).
Public methodDisposeReleases all resources used by the Frame
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsOrthogonal Determines if this frame's basis vectors are orthogonal.
Public methodIsOrthonormal Determines if this frame's basis vectors are orthonormal.
Public methodIsRightHanded Determine if this frame's basis is right-handed.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTransform Applies the input transform to this frame.
Top
Remarks
A Frame consists of three vectors at a base point in 3D space. The vectors need not be orthogonal, have unit length, or even be linearly independent, although in practice Frames will usually have linearly independent vectors. Frames may be used to represent a coordinate frame of reference, a moving frame field on a curve, or for other purposes.
See Also