CanDefineRevitGeometry Method


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) .

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.1090.0)
Since: 2017

Syntax

C#
public static bool CanDefineRevitGeometry(
	Frame frameOfReference
)
Visual Basic
Public Shared Function CanDefineRevitGeometry ( _
	frameOfReference As Frame _
) As Boolean
Visual C++
public:
static bool CanDefineRevitGeometry(
	Frame^ frameOfReference
)

Parameters

frameOfReference
Type: Autodesk.Revit.DB Frame
Frame to be validated.

Return Value

True if this Frame may be used as a local frame of reference, false otherwise.

Remarks

Certain Revit curve and surface types are defined using a local frame of reference.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →