PipeSegment.Create
Description:
Creates a new instance of a PipeSegment and adds it to the document.
Creates a new instance of a PipeSegment and adds it to the document.
public static PipeSegment Create(
Document ADocument,
ElementId MaterialId,
ElementId ScheduleId,
ICollection<MEPSize> sizeSet
)
-
ADocumentThe document where the PipeSegment will be created and added.
-
MaterialIdThe ElementId of the MaterialElem of the pipe segment.
-
ScheduleIdThe ElementId of the PipeScheduleType of the pipe segment.
-
ICollection<MEPSize>sizeSetA set of one or more sizes.
-
The size list is empty. -or- The MaterialId and ScheduleId was already used by another pipe segment. Please use a new Material, a new Schedule/Type, or both.
-
A non-optional argument was null