Create a MassLevelData (Mass Floor) to associate a Level with a mass instance.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static ElementId AddMassLevelDataToMassInstance(
Document document,
ElementId massInstanceId,
ElementId levelId
)
Parameters
- document Document
-
The Document.
- massInstanceId ElementId
-
The ElementId of the mass instance.
- levelId ElementId
-
The ElementId of the Level to associate with the mass instance.
Return Value
ElementId
The ElementId of the MassLevelData that was created, or the existing ElementId if it was already in added.
Exceptions
See Also
Reference