<?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: Placing Pipe accessory in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/placing-pipe-accessory/m-p/9842103#M30712</link>
    <description>&lt;P&gt;I guess you are right.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3894260"&gt;@MarryTookMyCoffe&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;unfortunately, there is no method like this. You need cut pipe, insert instance, rotate and than connect with pipe, there is just no better way.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but what do you mean by cut and connect?&lt;BR /&gt;cut ==&amp;gt; split ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 09:32:41 GMT</pubDate>
    <dc:creator>ameer.mansourWAK8Y</dc:creator>
    <dc:date>2020-11-03T09:32:41Z</dc:date>
    <item>
      <title>Placing Pipe accessory</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/placing-pipe-accessory/m-p/9840521#M30708</link>
      <description>&lt;P&gt;I have tried to&amp;nbsp;Place Pipe accessory using Revit API&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;_mainDoc.Create.NewFamilyInstance(_placmentPt, familySymbol, _refDir, _mepEle, StructuralType.NonStructural);
//_refDir is same direction of pipe
//_mepEle is the host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;but using this method is not rotating the&amp;nbsp;Pipe accessory like in this &lt;A href="https://youtu.be/6MQjlfjp-kg" target="_blank" rel="noopener"&gt;video&lt;/A&gt;. It places the accessory perpendicular to the pipe and no way to rotate it and also it doesn't divide the pipe as shown in this picture.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="after placment" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/839440i1090BC9756FD5A00/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-11-02_18-45-34.png" alt="after placment" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;after placment&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how to do such behaviour using Revit API ?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 17:04:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/placing-pipe-accessory/m-p/9840521#M30708</guid>
      <dc:creator>ameer.mansourWAK8Y</dc:creator>
      <dc:date>2020-11-02T17:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Placing Pipe accessory</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/placing-pipe-accessory/m-p/9840550#M30709</link>
      <description>&lt;P&gt;I am not sure you are using the right NewFamilyInstance overload.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure that a pipe fitting has any host element at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This article uses a different, and simpler overload:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2010/08/flex-duct-start-tangent.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2010/08/flex-duct-start-tangent.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe that will let you place the fitting in the proper orientation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to place the fitting first, before adding the pipe elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some explorations on finding the right overload:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2011/01/newfamilyinstance-overloads.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2011/01/newfamilyinstance-overloads.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the series on different ways to implement a rolling offset to see how you can choose between either inserting fittings or pipes first:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2014/01/final-rolling-offset-using-pipecreate.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2014/01/final-rolling-offset-using-pipecreate.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 17:14:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/placing-pipe-accessory/m-p/9840550#M30709</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-11-02T17:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Placing Pipe accessory</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/placing-pipe-accessory/m-p/9841831#M30710</link>
      <description>&lt;P&gt;unfortunately, there is no method like this. You need cut pipe, insert instance, rotate and than connect with pipe, there is just no better way.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 07:19:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/placing-pipe-accessory/m-p/9841831#M30710</guid>
      <dc:creator>MarryTookMyCoffe</dc:creator>
      <dc:date>2020-11-03T07:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Placing Pipe accessory</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/placing-pipe-accessory/m-p/9842076#M30711</link>
      <description>&lt;LI-CODE lang="csharp"&gt;            if (_refDir.Z != 0)
            {
//this is what i understood from https://thebuildingcoder.typepad.com/blog/2010/08/flex-duct-start-tangent.html
                psfInstance = _mainDoc.Create.NewFamilyInstance(_placmentPt, familySymbol, StructuralType.NonStructural);
                //do rotation
                Line axis2 = Line.CreateBound(_placmentPt, _placmentPt+10*XYZ.BasisY);
                var angle = _refDir.AngleTo(XYZ.BasisY);
                bool success = (psfInstance.Location as LocationPoint).Rotate(axis2, angle);
            }
            else
            {
                psfInstance = _mainDoc.Create.NewFamilyInstance(_placmentPt, familySymbol, _refDir, _mepEle.level, StructuralType.NonStructural); // to overcome rotation in xy plane , this is the only overload that has refdir and it works well. the host here is the level containing Family Instance.
            }&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-11-03_11-08-58.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/839748i6BDEF8BB179CBB0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-11-03_11-08-58.png" alt="2020-11-03_11-08-58.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what I have done for the rotation,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;&amp;nbsp; can you please take a look as the logic and variables are not clear in the link that you posted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 09:20:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/placing-pipe-accessory/m-p/9842076#M30711</guid>
      <dc:creator>ameer.mansourWAK8Y</dc:creator>
      <dc:date>2020-11-03T09:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Placing Pipe accessory</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/placing-pipe-accessory/m-p/9842103#M30712</link>
      <description>&lt;P&gt;I guess you are right.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3894260"&gt;@MarryTookMyCoffe&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;unfortunately, there is no method like this. You need cut pipe, insert instance, rotate and than connect with pipe, there is just no better way.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but what do you mean by cut and connect?&lt;BR /&gt;cut ==&amp;gt; split ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 09:32:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/placing-pipe-accessory/m-p/9842103#M30712</guid>
      <dc:creator>ameer.mansourWAK8Y</dc:creator>
      <dc:date>2020-11-03T09:32:41Z</dc:date>
    </item>
  </channel>
</rss>

