Creates a new SpaceTag.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- space
- Type: Autodesk.Revit.DB.MechanicalSpace
The Space which the tag refers.
- point
- Type: Autodesk.Revit.DBUV
A 2D point that dictates the location on the level of the space.
- view
- Type: Autodesk.Revit.DBView
The view where the tag will lie.
Return Value
If successful a SpaceTag object will be returned, otherwise a null reference (Nothing in Visual Basic). Suitable exceptions will be fired if the parameters are invalid.Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentException | Thrown if the space does not exist in the given document. |
Autodesk.Revit.ExceptionsArgumentException | Thrown if the view does not exist in the given document. |