Revit 2025.3 API
DocumentNew |
Creates a new SpaceTag.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public SpaceTag NewSpaceTag( Space space, UV point, View view )
Public Function NewSpaceTag ( space As Space, point As UV, view As View ) As SpaceTag
public: SpaceTag^ NewSpaceTag( Space^ space, UV^ point, View^ view )
member NewSpaceTag : space : Space * point : UV * view : View -> SpaceTag
Parameters
- space Space
- The Space which the tag refers.
- point UV
- A 2D point that dictates the location on the level of the space.
- view View
- The view where the tag will lie.
Return Value
SpaceTagIf successful a SpaceTag object will be returned, otherwise . Suitable exceptions will be fired if the parameters are invalid.
| Exception | Condition |
|---|---|
| ArgumentException | Thrown if the space does not exist in the given document. |
| ArgumentException | Thrown if the view does not exist in the given document. |
See Also