Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

New schedule/type pipe settings

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Gilles.Lagrilliere
447 Views, 2 Replies

New schedule/type pipe settings

Hello everyone,

 

How can I create a new schedule/type for a new segment in the pipe settings?

GillesLagrilliere_0-1638866490872.png

 

Labels (1)
2 REPLIES 2
Message 2 of 3

PipeScheduleType.Create
PipeSegment.Create

 

Seems to be the way.

Message 3 of 3

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";

 

 

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report