CreateInstanceView Method (Document, ElementId, ElementId)


Panel Schedule View Create Instance View(Document, Element Id, Element Id) Method

Creates a new instance of this view (using specific template)

Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static PanelScheduleView CreateInstanceView(
	Document ADoc,
	ElementId templateId,
	ElementId panelId
)

Parameters

ADoc Document
The Document
templateId ElementId
The templateId that this function will use
panelId ElementId
Element id of the electrical panel element.

Return Value

PanelScheduleView
The PanelScheduleView
Exceptions
Exception Condition
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 →