Message 1 of 4
Create a Generic Pipe: What should the 2nd parameter be?

Not applicable
09-05-2013
04:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I am trying to create my own Pipe and add it to the current document using Pipe.Create();. The pipe I am trying to create is very generic, I am not concerned about the pipe type/material or even level. All I am concerned about is the start and end XYZ points which I know.
My Problem: I am not sure what some parameters of Pipe.Create(); should be. See below for the parameters I am unsure how to specifty...
public static Pipe Create( Document document, ElementId systemTypeId, What do I specify here for a generic (maybe PVC) pipe? ElementId pipeTypeId, What do I specify here for a generic pipe? ElementId levelId, What do I specify here for a generic pipe? XYZ firstPoint, XYZ secondPoint )
Are there enumeration variables for a generic pipe system, and a generic pipe type?
My code:
// Maybe there are variables like StructuralType.NonStructural, ie, PlumbingType.Generic?? Pipe pipe = Pipe.Create(doc, PipingSystemType.Generic, PipeType.Generic, levelId.Generic, strt, end);