Hello everyone,
How can I create a new schedule/type for a new segment in the pipe settings?
Solved! Go to Solution.
Link copied
Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
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";