SetDirectContext3DHandleSettings Method


Assigns override settings associated with a DirectContext3D handle instance or type.

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

Syntax

C#
public void SetDirectContext3DHandleSettings(
	Document aDoc,
	ElementId elementId,
	DirectContext3DHandleSettings newSettings
)
Visual Basic
Public Sub SetDirectContext3DHandleSettings ( _
	aDoc As Document, _
	elementId As ElementId, _
	newSettings As DirectContext3DHandleSettings _
)
Visual C++
public:
void SetDirectContext3DHandleSettings(
	Document^ aDoc, 
	ElementId^ elementId, 
	DirectContext3DHandleSettings^ newSettings
)

Parameters

aDoc
Type: Autodesk.Revit.DB Document
Document where elementId resides.
elementId
Type: Autodesk.Revit.DB ElementId
Id of the element to be overridden.
newSettings
Type: Autodesk.Revit.DB.DirectContext3D DirectContext3DHandleSettings
The override settings to be assigned to the handle element.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException The ElementId elementId is not a valid DirectContext3D handle instance or type.
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 →