Create Method (Document, ElementId, String)


Creates a new instance of a piping system and adds it to the document.

Namespace: Autodesk.Revit.DB.Plumbing
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2011

Syntax

C#
public static PipingSystem Create(
	Document ADocument,
	ElementId typeId,
	string name
)
Visual Basic
Public Shared Function Create ( _
	ADocument As Document, _
	typeId As ElementId, _
	name As String _
) As PipingSystem
Visual C++
public:
static PipingSystem^ Create(
	Document^ ADocument, 
	ElementId^ typeId, 
	String^ name
)

Parameters

ADocument
Type: Autodesk.Revit.DB Document
The document where the element will be created and added.
typeId
Type: Autodesk.Revit.DB ElementId
The identifier of this piping system element's type.
name
Type: System String
The name of the piping system to be created.

Return Value

The newly created piping system element.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException The typeId is not an element id for a valid piping system type.
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL
Autodesk.Revit.Exceptions DisabledDisciplineException None of the following disciplines is enabled: Mechanical Electrical Piping.

See Also