CanBeDivisionProfile Method (ElementId, Document)


Checks whether a family defines a profile which can be used by this method.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2013

Syntax

C#
public static bool CanBeDivisionProfile(
	ElementId familyId,
	Document familyDocument
)
Visual Basic
Public Shared Function CanBeDivisionProfile ( _
	familyId As ElementId, _
	familyDocument As Document _
) As Boolean
Visual C++
public:
static bool CanBeDivisionProfile(
	ElementId^ familyId, 
	Document^ familyDocument
)

Parameters

familyId
Type: Autodesk.Revit.DBElementId
Element id of the family.
familyDocument
Type: Autodesk.Revit.DBDocument
The document containing the family to be tested.

Return Value

True if the family defines a profile which can be used by a part maker, false otherwise.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException 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 →