<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change the system type for pipe creation via UI in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6860090#M60533</link>
    <description>&lt;P&gt;That's my alternative approach. The problem is that it is not very user friendly. With calling PickPoint two times, I have to find a way to show the user how the second point is in relation to the first point. I am sure I can manage that, but I would rather find out how to change the system type upfront and call the Revit command for pipe creation via PostCommand.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2017 15:29:28 GMT</pubDate>
    <dc:creator>sniMD547</dc:creator>
    <dc:date>2017-02-07T15:29:28Z</dc:date>
    <item>
      <title>Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6851428#M60525</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when you create a pipe via the UI, you can select the system type used for the creation in the settings of the pipe. (If you then create the pipe or not, doesn't matter, the selected type is saved within the document and used as default whenever you decide to create a pipe until you change it again).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found out that this setting is saved with the document but I can't pinpoint the location, and I also can't find a way to change it via API which is what I have to do. Does anybody know a way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have to change the cross-section parameters and the offset. For clarification, I attached an image of the settingsshown when the command to create a pipe is called, and marked the settings of interest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 08:55:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6851428#M60525</guid>
      <dc:creator>sniMD547</dc:creator>
      <dc:date>2017-02-03T08:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6851529#M60526</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4431172"&gt;@sniMD547&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Have you looked at SetDefaultElementTypeId? &lt;A href="http://www.revitapidocs.com/2017/bcd1ffba-2ddf-83b2-a243-fb0cfdba0b7c.htm" target="_blank"&gt;http://www.revitapidocs.com/2017/bcd1ffba-2ddf-83b2-a243-fb0cfdba0b7c.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(There's an example in the SDK also.)&lt;/P&gt;
&lt;P&gt;Not sure if it does what you're after though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 09:53:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6851529#M60526</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-02-03T09:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6851534#M60527</link>
      <description>&lt;P&gt;Hi matthew.taylor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply. Unfortunately, I already tried that, and it only changes the pipe type, for example from copper to steel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sascha&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 09:59:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6851534#M60527</guid>
      <dc:creator>sniMD547</dc:creator>
      <dc:date>2017-02-03T09:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6859345#M60528</link>
      <description>&lt;P&gt;I'm not 100 % sure if it's what you wanted, but I manage to change default pipetype for user with API, I used:&lt;/P&gt;&lt;PRE&gt;document.SetDefaultElementTypeId(ElementTypeGroup.PipeType, pipeType.Id);&lt;/PRE&gt;&lt;P&gt;and when I try using pipetype by UI&amp;nbsp; default type is last pipetype thet i created(i put this line in my creation Pipie type metod).&lt;/P&gt;&lt;P&gt;Before it was always Standard and now it is PEAL, so I guess it's work for me.&lt;BR /&gt;&lt;BR /&gt;I thing you can change default diameter of pipe by changing parameter in pipeType.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:37:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6859345#M60528</guid>
      <dc:creator>MarryTookMyCoffe</dc:creator>
      <dc:date>2017-02-07T10:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6859663#M60529</link>
      <description>&lt;P&gt;Thanks for your reply, but I already tried that, and it only changes the "material" of the pipe.&lt;/P&gt;&lt;P&gt;What I want is to change the system type, e.g. to DomesticColdWater, and, in case of a pipe, the diameter, followed by the offset. These parameters have to be independent from the pipe type because they don't change if you change the pipe type, and if you change the system type for one pipe type, it's the same for all other pipe types.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 13:15:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6859663#M60529</guid>
      <dc:creator>sniMD547</dc:creator>
      <dc:date>2017-02-07T13:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6859966#M60530</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4431172"&gt;@sniMD547&lt;/a&gt;&amp;nbsp;Those are called Instance Parameters. (i.e. system type is an instance parameter for pipes) and you would be able to retrieve and modify them through API. Try Pipe.SetSystemType method to change the system type of a pipe. And 'system type' property is&amp;nbsp;associated with enum&amp;nbsp;'PipeSystemType'.&lt;/P&gt;&lt;P&gt;(I just corrected this reply.)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 14:58:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6859966#M60530</guid>
      <dc:creator>BardiaJahan</dc:creator>
      <dc:date>2017-02-07T14:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6860007#M60531</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: Maybe I misunderstood what you were trying to tell me. I'll try what I hope you were saying.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 15:15:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6860007#M60531</guid>
      <dc:creator>sniMD547</dc:creator>
      <dc:date>2017-02-07T15:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6860051#M60532</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4431172"&gt;@sniMD547&lt;/a&gt;&amp;nbsp;Since Pipe.Create method has a systemTypeId input, after prompting the user to create a pipe (most probably by picking the endpoints), you can create a new pipe with a certain system type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 15:16:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6860051#M60532</guid>
      <dc:creator>BardiaJahan</dc:creator>
      <dc:date>2017-02-07T15:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6860090#M60533</link>
      <description>&lt;P&gt;That's my alternative approach. The problem is that it is not very user friendly. With calling PickPoint two times, I have to find a way to show the user how the second point is in relation to the first point. I am sure I can manage that, but I would rather find out how to change the system type upfront and call the Revit command for pipe creation via PostCommand.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 15:29:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6860090#M60533</guid>
      <dc:creator>sniMD547</dc:creator>
      <dc:date>2017-02-07T15:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6860105#M60534</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4431172"&gt;@sniMD547&lt;/a&gt;&amp;nbsp;I would also try creating a random pipe with the desired system type through API&amp;nbsp;and then either roll back the transaction or delete it and let's see if the Revit UI keeps the system type as the active one or not. Could you let me know the result whenever you tried it?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 15:34:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6860105#M60534</guid>
      <dc:creator>BardiaJahan</dc:creator>
      <dc:date>2017-02-07T15:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6860112#M60535</link>
      <description>&lt;P&gt;I already tried that. It doesn't work that way.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 15:35:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6860112#M60535</guid>
      <dc:creator>sniMD547</dc:creator>
      <dc:date>2017-02-07T15:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6861958#M60536</link>
      <description>&lt;P&gt;I feel, like you don't really know how Pipes are made in Revit. You talk about PipeType, but then you call it material(PipeType are made from segments, fitting and some other things.), then you talk abaut parameter of type PipeType and finnnly you use example where you what to change a default PipingSystemType(which you can change just like a PipeType).&lt;/P&gt;&lt;P&gt;&amp;nbsp;My advice is, read more about difference in Family, Types, and see how it is with Pipe and PipeType&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 08:09:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6861958#M60536</guid>
      <dc:creator>MarryTookMyCoffe</dc:creator>
      <dc:date>2017-02-08T08:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6862037#M60537</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4431172"&gt;@sniMD547&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;My brain has been going hard at this issue since the flood of notifications hitting my inbox yesterday.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I came up with a workflow that may be worth testing:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Run an iUpdater in an application. Have it on added elements of the pipe category. Have it turned 'off' by some sort of singleton Boolean switch.&lt;/LI&gt;
&lt;LI&gt;Get size/system/offset settings from the user.&lt;/LI&gt;
&lt;LI&gt;Use SetDefaultElementTypeId to set the pipe type. (I am not sure this is necessary given we are using PostRequestForElementTypePlacement&amp;nbsp;below.)&lt;/LI&gt;
&lt;LI&gt;Turn the updater on.&lt;/LI&gt;
&lt;LI&gt;Use PostRequestForElementTypePlacement&amp;nbsp;to post the pipetype creation. This will not start until Revit has regained focus.&lt;/LI&gt;
&lt;LI&gt;Once the first pipe has been added, the updater will fire. Change the first created pipe to the settings input in (2). Then immediately turn off the updater singleton Boolean switch. (We do this because we want Revit to handle the creation of fittings etc - we don't want to have to try to replicate that process.)&lt;/LI&gt;
&lt;LI&gt;If the process works, handle issues such as adding to existing systems etc.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If your test code works, I'm sure that Jeremy would love to blog about it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 09:01:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6862037#M60537</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-02-08T09:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6865513#M60538</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try that if all else fails. I already thought about changing the system type of the created pipes after all pipes are created. But it could be that the view doesn't show the created pipes due to the system type. That could also be a problem of your solution, just only for the first pipe.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 10:53:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6865513#M60538</guid>
      <dc:creator>sniMD547</dc:creator>
      <dc:date>2017-02-09T10:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6868222#M60539</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Sascha,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for raising your query here in public after we discussed some aspects of it in the previous ADN case &lt;U&gt;&lt;STRONG&gt;12586637&lt;/STRONG&gt;&lt;/U&gt; [Pipe Drawing: changing the used piping system type and prompting the pipe drawing command].&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I raised a new ADN case &lt;U&gt;&lt;STRONG&gt;12656570&lt;/STRONG&gt;&lt;/U&gt; [Change the system type for pipe creation via UI] directly connected with this thread to keep things somewhat synchronised.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In your last comment on the previous ADN case, you summarised the situation like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"The way I understand it, we could retrieve the default system type for a certain system classification as described in the explanation of the 'Pipe.Create Piping System Type Argument' -- &lt;A href="http://thebuildingcoder.typepad.com/blog/2014/01/final-rolling-offset-using-pipecreate.html#4" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2014/01/final-rolling-offset-using-pipecreate.html#4&lt;/A&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp; systemIdTypeId = mepSystemTypes.FirstOrDefault(
&amp;nbsp;&amp;nbsp;&amp;nbsp; st =&amp;gt; st.SystemClassification ==
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MEPSystemClassification.DomesticHotWater );&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, we cannot alter it according to the section 'C The case of Pipe creation' -- &lt;A href="http://thebuildingcoder.typepad.com/blog/2015/04/revit-api-trends-and-team-meeting-in-bretagne.html#3" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/04/revit-api-trends-and-team-meeting-in-bretagne.html#3&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did I understand it correctly?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And is this also true for the start offset of the pipe and the diameter respectively the width and height?"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Unfortunately, I am not sure off-hand, so I cannot say anything either way without further research.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think Matt's last suggestion sounds like a doable approach.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would be a bit surprised if there is no easier way, though.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I feel this subject has come up before as well, so I checked the history of previous discussion threads here in the forum for topics related to pipe and pipe system types and came up with the following list:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="http://forums.autodesk.com/t5/Revit-API/Pipe-placeholder-set-system-type/td-p/3840383" target="_blank"&gt;http://forums.autodesk.com/t5/Revit-API/Pipe-placeholder-set-system-type/td-p/3840383&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="http://forums.autodesk.com/t5/Revit-API/Specify-System-Type-Hydronic-Supply-Pipe-Type/td-p/4521851" target="_blank"&gt;http://forums.autodesk.com/t5/Revit-API/Specify-System-Type-Hydronic-Supply-Pipe-Type/td-p/4521851&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="http://forums.autodesk.com/t5/revit-api/how-can-i-set-the-system-name-for-a-pipe/m-p/6017010" target="_blank"&gt;http://forums.autodesk.com/t5/revit-api/how-can-i-set-the-system-name-for-a-pipe/m-p/6017010&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="http://forums.autodesk.com/t5/revit-api/system-name-is-changing-after-new-pipe-is-created/m-p/5656374" target="_blank"&gt;http://forums.autodesk.com/t5/revit-api/system-name-is-changing-after-new-pipe-is-created/m-p/5656374&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Would it be possible for you to provide a minimal reproducible case so that we are all absolutely clear about exactly what we are talking about, and what you have achieved so far?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That might trigger&amp;nbsp;further ideas.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 08:32:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6868222#M60539</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-02-10T08:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6868949#M60540</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4431172"&gt;@sniMD547&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I agree.&lt;/P&gt;
&lt;P&gt;You may want to create the first pipe length as a placeholder. That category is more likely to be visible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;&amp;nbsp;I also think that there should be an easier way!&lt;/P&gt;
&lt;P&gt;Perhaps &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/809730"&gt;@arnostlobel&lt;/a&gt;&amp;nbsp;has a suggestion?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 14:01:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6868949#M60540</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-02-10T14:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6869042#M60541</link>
      <description>&lt;P&gt;Dear Matt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Arnošt left the company and no longer works with Revit, I'm sorry to say. He is sorely missed, of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose you guys have rules out all possibility of controlling the desired settings using the PipeSystemType argument passed in to the Pipe.Create method?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the proper name in Revit-speak for the settings that we are talking about here, and for whatever entity contains and controls them?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Surely it must have a sensible name that includes something beyond the totally overloaded and painfully limited vocabulary 'pipe', 'system' and 'type'?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 14:36:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6869042#M60541</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-02-10T14:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6869554#M60542</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;That is sad news. Who has taken over?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once a pipe (DB.Pipe) has been created,&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the PipingSystemType is available in the&amp;nbsp;RBS_PIPING_SYSTEM_TYPE_PARAM builtinparameter&lt;/LI&gt;
&lt;LI&gt;the Offset is available in the RBS_OFFSET_PARAM&amp;nbsp;builtinparameter&lt;/LI&gt;
&lt;LI&gt;the Diameter is available in the RBS_PIPE_DIAMETER_PARAM builtinparameter#&lt;/LI&gt;
&lt;LI&gt;the pipe.PipeType is the value that can actually be passed legitimately to&amp;nbsp;SetDefaultElementTypeId prior to calling &lt;SPAN class="identifier"&gt;PostRequestForElementTypePlacement. (I haven't tested this.)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4431172"&gt;@sniMD547&lt;/a&gt;&amp;nbsp;As I've been typing this message, it occurred to me that I'm not 100% sure of what you are trying to achieve. I have assumed that you are trying to set the above values so you can call &lt;SPAN class="identifier"&gt;PostRequestForElementTypePlacement,&lt;/SPAN&gt; or call&amp;nbsp;PostCommand with PostableCommand.Pipe. Can you confirm that that is what you are trying to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One other thought I had (which doesn't help much), is selecting a pipe (using the API)&amp;nbsp;with the properties you want, and doing Create Similar with PostCommand. Not helpful if you're creating the first pipe with those parameters.&lt;/P&gt;
&lt;P&gt;You could create a pipe (using the API)&amp;nbsp;and then use create similar (with postCommand) to create a similar one, but that workflow doesn't allow for deletion of the pipe. You could do some post clean up though, I guess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 17:16:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6869554#M60542</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-02-10T17:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6873252#M60543</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/98018"&gt;@matthew_taylor&lt;/a&gt;: Yes, that is what I am trying to do.&lt;/P&gt;&lt;P&gt;Your suggestion sounds good if it is possible to create similar elements via the API. I'll look into it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;: Thanks for creating a new ADN case. But somehow the case got closed shortly after you opened it. Do you know why?&lt;/P&gt;&lt;P&gt;I followed the links you provided. Unfortunately, I couldn't find a solution for my problem there.&lt;/P&gt;&lt;P&gt;I'll see if I could provide some sample code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 08:34:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6873252#M60543</guid>
      <dc:creator>sniMD547</dc:creator>
      <dc:date>2017-02-13T08:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change the system type for pipe creation via UI</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6874157#M60544</link>
      <description>&lt;P&gt;Dear Sascha,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I closed the ADN case. I just use it as a container for our discussion here in this thread. Whether it is open or closed makes no difference as long as we are aware of its existence and case number. All communication can take place via this thread. I hope that clarifies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I discussed this with the development team, and they say:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can provide the pipe system type as an argument to the Pipe.Create method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  private List&amp;lt;PipingSystemType&amp;gt; m_pipingSystemTypes;
  private List&amp;lt;PipeType&amp;gt; m_pipeTypes;
 
  m_pipingSystemTypes = GetElements&amp;lt;PipingSystemType&amp;gt;().ToList();
  m_pipeTypes = GetElements&amp;lt;PipeType&amp;gt;().ToList();
 
  Pipe pipe = Pipe.Create(RevitDoc, m_pipingSystemTypes[i].Id, m_pipeTypes[j].Id, ...);
&lt;/PRE&gt;
&lt;P&gt;Also, the other two Pipe.Create methods take the connector as the input and automatically take the system type from the connector:&lt;BR /&gt; &lt;/P&gt;
&lt;PRE&gt;  static Autodesk::Revit::DB::Plumbing::Pipe ^Create(Autodesk::Revit::DB::Document ^document, Autodesk::Revit::DB::ElementId ^pipeTypeId, Autodesk::Revit::DB::ElementId ^levelId, Autodesk::Revit::DB::Connector ^startConnector, Autodesk::Revit::DB::XYZ ^endPoint);
  
  static Autodesk::Revit::DB::Plumbing::Pipe ^Create(Autodesk::Revit::DB::Document ^document, Autodesk::Revit::DB::ElementId ^pipeTypeId, Autodesk::Revit::DB::ElementId ^levelId, Autodesk::Revit::DB::Connector ^startConnector, Autodesk::Revit::DB::Connector ^endConnector);
&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;As you noticed, the UI has a default system type as well as the default pipe type, even if the input does not include connectors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That default value is saved in a SymbolIdMgr in the UI editor. Unfortunately, The SymbolIdMgr is not exposed in API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That UI/API difference is similar for other non-MEP objects, like Wall objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There may be a problem with this second suggestion: the system (and thus the type) may not be assigned to the connector yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe the first approach solves that and is already pointing to those?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does that match your findings?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 15:35:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-the-system-type-for-pipe-creation-via-ui/m-p/6874157#M60544</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-02-13T15:35:46Z</dc:date>
    </item>
  </channel>
</rss>

