DocumentNewRoomTag Method |
Creates a new RoomTag referencing a room in the host model or in a Revit link.
Namespace: Autodesk.Revit.CreationAssembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntaxpublic RoomTag NewRoomTag(
LinkElementId roomId,
UV point,
ElementId viewId
)
Public Function NewRoomTag (
roomId As LinkElementId,
point As UV,
viewId As ElementId
) As RoomTag
public:
RoomTag^ NewRoomTag(
LinkElementId^ roomId,
UV^ point,
ElementId^ viewId
)
member NewRoomTag :
roomId : LinkElementId *
point : UV *
viewId : ElementId -> RoomTag
Parameters
- roomId LinkElementId
- The HostOrLinkElementId of the Room.
- point UV
- A 2D point that defines the tag location on the level of the room.
- viewId ElementId
- The id of the view where the tag will be shown. If and the room in not in a Revit link, the view of the room will be used.
Return Value
RoomTag If successful a RoomTag object will be returned, otherwise
.
Exceptions
See Also