I've done some searching but not turned up anything that describes how to set a pipe place holder system type.
Pipe pipe = Pipe.CreatePlaceholder(doc, pst.mPipeType.Id, s.mRevitLevel.Id, p, c);
Parameter prm = pipe.get_Parameter(BuiltInParameter.RBS_PIPING_SYS
if (prm != null)
prm.Set("Domestic Cold Water");
creates the placeholder, but system type is left "UNDEFINED".
Thanks in advance,
Ability to set the piping system type via the API if the pipe was created via the API is not supported at this moment.. I am not aware of any workaround that I can suggest unfortunately.
Sorry about that.
Wow. When might we expect to be able to have this type of functionality provided?
I can't change the type manually on the created objects making them impossible to use. Can you advise if this is possible?
Thank you for your query.
I agree that this is pretty fundamental.
Unfortunately, the functionality you ask for is not currently available directly.
It is probably possible to work around this lack pretty easily in Revit 2014 using the new copy and paste functionality.
We have an existing wish list item 217278 [Wishlist: Ability to set the piping system type via the API if the pipe was created via the API] for this. I added a note of your request to this item in order to make the development team aware of its importance.
I hope this helps.
Thanks for the reply. I look forward to seeing this type of functionality implemented in the Revit API.
I have requests and interest in generating building services models from the API, so when work is being done on this area it would be great if I could be involved in "beta-testing" this to avoid the situation where this aspect is fixed, but a new one arises (that I can't test until an official release occurs) slowing the progress of what could be a very powerful workflow.
It's true. I just thought perhaps it could be noted on the case so I could be notified when this is worked on (I assume it will happen anyway as I opened the ADN case).
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register