Hello everyone,
How can I create a new schedule/type for a new segment in the pipe settings?
Solved! Go to Solution.
Link copied
Hello everyone,
How can I create a new schedule/type for a new segment in the pipe settings?
Solved! Go to Solution.
Hi @Gilles.Lagrilliere ,
Yes, what @RPTHOMAS108 mentioned was correct. If you are looking for the sample code, Here is the sample code
Pipe p;
PipeSegment seg = p.PipeSegment;
ICollection<MEPSize> sizeSet=seg.GetSizes();
ElementId MaterialId =Material.Create(doc, "my Material");
PipeScheduleType type=PipeScheduleType.Create(doc, "My PipeSchedule type");
ElementId ScheduleId = type.GetTypeId();
PipeSegment pipeSeg = PipeSegment.Create(doc, MaterialId, ScheduleId, sizeSet);
pipeSeg.Name = "My PipeSegment Name";