<?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 How to get a merged part after merging with some parts? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-merged-part-after-merging-with-some-parts/m-p/7772648#M52527</link>
    <description>&lt;P&gt;I have merged some parts with this code.&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;P&gt;var findParts = PartUtils.FindMergeableClusters(Doc, PartIDs);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;findParts.ToList().ForEach(p =&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (p.Count == 1) return;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; PartUtils.CreateMergedPart(Doc, p);&lt;/STRONG&gt;&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But output of 'PartUtils.CreateMergedPart' is not a Part. It's a&amp;nbsp; 'PartMaker'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a part output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to get a merged part object?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 01:15:39 GMT</pubDate>
    <dc:creator>Soulless_ik</dc:creator>
    <dc:date>2018-02-13T01:15:39Z</dc:date>
    <item>
      <title>How to get a merged part after merging with some parts?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-merged-part-after-merging-with-some-parts/m-p/7772648#M52527</link>
      <description>&lt;P&gt;I have merged some parts with this code.&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;P&gt;var findParts = PartUtils.FindMergeableClusters(Doc, PartIDs);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;findParts.ToList().ForEach(p =&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (p.Count == 1) return;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; PartUtils.CreateMergedPart(Doc, p);&lt;/STRONG&gt;&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But output of 'PartUtils.CreateMergedPart' is not a Part. It's a&amp;nbsp; 'PartMaker'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a part output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to get a merged part object?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 01:15:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-merged-part-after-merging-with-some-parts/m-p/7772648#M52527</guid>
      <dc:creator>Soulless_ik</dc:creator>
      <dc:date>2018-02-13T01:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a merged part after merging with some parts?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-merged-part-after-merging-with-some-parts/m-p/7773057#M52528</link>
      <description>&lt;P&gt;You can subscribe to the&amp;nbsp;DocumentChanged event just before callingCreateMergedPart, and unsubscribe just afterwards:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.revitapidocs.com/2018.1/988dd6cf-fcaa-85d2-622d-c50f13917a13.htm" target="_blank"&gt;http://www.revitapidocs.com/2018.1/988dd6cf-fcaa-85d2-622d-c50f13917a13.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will tell you all the element ids added to the database during the call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is demonstrated here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2010/06/place-family-instance.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2010/06/place-family-instance.html&lt;/A&gt;&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>Tue, 13 Feb 2018 07:01:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-merged-part-after-merging-with-some-parts/m-p/7773057#M52528</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-02-13T07:01:42Z</dc:date>
    </item>
  </channel>
</rss>

