SetDiscipline Method


Revit Link Graphics Settings Set Discipline Method

Sets discipline and discipline type of RevitLinkGraphicsSettings.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void SetDiscipline(
	LinkVisibility disciplineType,
	ViewDiscipline discipline
)

Parameters

disciplineType LinkVisibility
The type of the discipline.
discipline ViewDiscipline
The discipline. If disciplineType is set to ByHostView or ByLinkView the discipline must be set to Architectural .
Exceptions
Exception Condition
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 →