GetProfileSymbols Method


Gets the profile Family Symbols of the document.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2014

Syntax

C#
public static ICollection<ElementId> GetProfileSymbols(
	Document document,
	ProfileFamilyUsage profileFamilyUsage,
	bool oneCurveLoopOnly
)
Visual Basic
Public Shared Function GetProfileSymbols ( _
	document As Document, _
	profileFamilyUsage As ProfileFamilyUsage, _
	oneCurveLoopOnly As Boolean _
) As ICollection(Of ElementId)
Visual C++
public:
static ICollection<ElementId^>^ GetProfileSymbols(
	Document^ document, 
	ProfileFamilyUsage profileFamilyUsage, 
	bool oneCurveLoopOnly
)

Parameters

document
Type: Autodesk.Revit.DB Document
The document.
profileFamilyUsage
Type: Autodesk.Revit.DB ProfileFamilyUsage
The profile family usage.
oneCurveLoopOnly
Type: System Boolean
Whether or not to return only profiles with one curve loop.

Return Value

The set of profile Family Symbol element ids.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null
Autodesk.Revit.Exceptions ArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration

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 →