Creates a new grid line.
Namespace:
Autodesk.Revit.DB
Assembly:
RevitAPI
(in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0)
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- document
-
Type:
Autodesk.Revit.DB
Document
The document in which the new instance is created.
- line
-
Type:
Autodesk.Revit.DB
Line
A line object which represents the location of the grid line.
Return Value
The newly created grid line.Remarks
The line should be on a horizontal plane.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions ArgumentException | document is not a project document. -or- The input line is not on horizontal plane. |
Autodesk.Revit.Exceptions ArgumentNullException | A non-optional argument was NULL |