RVTDocs.com

MechanicalSystem.Create(Document, ElementId, String)

Method
Description:
Creates a new instance of a mechanical system and adds it to the document.
Syntax
public static MechanicalSystem Create(
	Document ADocument,
	ElementId typeId,
	string name
)
Parameters
Parameter Type Description
ADocument Document The document where the element will be created and added.
typeId ElementId The identifier of this mechanical system element's type.
name String The name of the mechanical system to be created.
Return Value
Type Description
MechanicalSystem The newly created mechanical system element.
Exceptions
Exception Condition
ArgumentException The typeId is not an element id for a valid mechanical system type.
ArgumentNullException A non-optional argument was null