Creates a new ViewDrafting in the model.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2015
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- document
- Type: Autodesk.Revit.DB Document
The document in which the new drafting view will be created.
- viewFamilyTypeId
- Type: Autodesk.Revit.DB ElementId
The id of the ViewFamilyType that should be assigned to the new drafting view.
Return Value
The newly created drafting view.Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions ArgumentException | viewFamilyTypeId is not a valid ViewFamilyType for a drafting view. |
Autodesk.Revit.Exceptions ArgumentNullException | A non-optional argument was NULL |