Share

ViewDrafting.Create Method

Creates a new ViewDrafting in the model.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)

Syntax

C#

public static ViewDrafting Create(
	Document document,
	ElementId viewFamilyTypeId
)

Parameters

document  Document
The document in which the new drafting view will be created.
viewFamilyTypeId  ElementId
The id of the ViewFamilyType that should be assigned to the new drafting view.

Return Value

ViewDrafting
The newly created drafting view.

Exceptions

ExceptionCondition
ArgumentException viewFamilyTypeId is not a valid ViewFamilyType for a drafting view.
ArgumentNullException A non-optional argument was null

See Also

Reference

Was this information helpful?