RVTDocs.com

MassInstanceUtils.AddMassLevelDataToMassInstance

Method
Description:
Create a MassLevelData (Mass Floor) to associate a Level with a mass instance.
Syntax
public static ElementId AddMassLevelDataToMassInstance(
	Document document,
	ElementId massInstanceId,
	ElementId levelId
)
Parameters
Parameter Type Description
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
Type Description
ElementId The ElementId of the MassLevelData that was created, or the existing ElementId if it was already in added.
Exceptions
Exception Condition
ArgumentException The ElementId massInstanceId is not a mass instance. -or- The ElementId levelId is not a Level.
ArgumentNullException A non-optional argument was null