System name is changing after new pipe is created.

System name is changing after new pipe is created.

Anonymous
Not applicable
864 Views
3 Replies
Message 1 of 4

System name is changing after new pipe is created.

Anonymous
Not applicable

Hi,

 

I am reading the parameters from the existing pipe and creating new pipe in the same location with same parameters values red by the existing pipe.

 

Suppose if System Classification is Hydronic Supply, same is appearing in the System Type too i.e, Hydronic Supply.

But in System Name Hydronic Supply 9 is coming for newly created pipes, but for already existing pipe system name was Hydronic Supply 7.

How to match this parameter with existing pipe using Revit API.

0 Likes
865 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

Hi,

 

I am able to read the System name from the Biult in parameter  RBS_SYSTEM_NAME_PARAM..

But i can't set this parameter name to the newly created pipe,

i am trying with the below code.

 /// pipe system name
m_sys_name = pipe_list[k].get_Parameter(BuiltInParameter.RBS_SYSTEM_NAME_PARAM).AsString();            pp.get_Parameter(BuiltInParameter.RBS_SYSTEM_NAME_PARAM).Set(m_sys_name);

Can anyone suggest me how to set this parameter for new pipe..

 

0 Likes
Message 3 of 4

jeremytammik
Autodesk
Autodesk

Dear Anusha,

 

Does this help?

 

http://thebuildingcoder.typepad.com/blog/2015/01/isolating-elements-of-a-given-system.html

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 4 of 4

Anonymous
Not applicable

Hi Jeremy,

 

Thank you very much for the reply..

 

I gone through the link. Its heplful..

 

But it does not help me to solve my issue.

 

I am trying to set the RBS_SYSTEM_NAME_PARAM to the pipes..

 

I have some set of pipes, which is having predefined system names. The same system name i have to use to create the new set of pipes..

 

How to achieve it?

 

 

0 Likes