IsValidNonContinuousRailProfile Method


Checks whether the input id represents a profile which can be used as the profile of this non-continuous rail.

Namespace: Autodesk.Revit.DB.Architecture
Assembly: RevitAPI (in RevitAPI.dll) Version: 19.0.0.0 (19.0.0.405)
Since: 2019

Syntax

C#
public bool IsValidNonContinuousRailProfile(
	ElementId profileId
)
Visual Basic
Public Function IsValidNonContinuousRailProfile ( _
	profileId As ElementId _
) As Boolean
Visual C++
public:
bool IsValidNonContinuousRailProfile(
	ElementId^ profileId
)

Parameters

profileId
Type: Autodesk.Revit.DB ElementId
The profile Id to be checked.

Return Value

True if the ElementId refers to a valid NonContinuousRail profile, false otherwise.

Remarks

InvalidElementId is considered a valid NonContinuousRail profile (the default profile).

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 →