<?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: Explode dwg API / PostableCommand in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/10988819#M54606</link>
    <description>&lt;P&gt;For the record :&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/revit-ideas/improve-api-access-to-the-ribbon-function-explode-imported-dxf/idi-p/10983624" target="_blank"&gt;Improve API access to the Ribbon function (Explode Imported DXF/DWG) - Autodesk Community&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2022 14:55:36 GMT</pubDate>
    <dc:creator>samuel.cailletMDQ7N</dc:creator>
    <dc:date>2022-03-07T14:55:36Z</dc:date>
    <item>
      <title>Explode dwg API / PostableCommand</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/7559245#M54599</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;With Revit 2018, I still can't find a way to explode a dwg. I've seen that this has been a request from 2015 at least, but it seems that there is no method / PostableCommand related to this.&lt;BR /&gt;&lt;BR /&gt;Do we have a workaround?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;DA ROCHA Romain&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 17:07:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/7559245#M54599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-20T17:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Explode dwg API / PostableCommand</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/7559861#M54600</link>
      <description>&lt;P&gt;Dear Romain,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would assume that you can use PostCommand to drive this command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am afraid I am not aware of any direct API call yet, sorry to say.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you checked whether this wish is also listed and voted for in the Revit Idea Station?&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;
&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, 20 Nov 2017 20:09:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/7559861#M54600</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-11-20T20:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Explode dwg API / PostableCommand</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/7561125#M54601</link>
      <description>&lt;P&gt;I tought of PostCommand too, but I can't find any enum value related to "explode" or "ImportInstance".&lt;BR /&gt;I'll take a look if it is present in the wish list.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 08:54:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/7561125#M54601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-21T08:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Explode dwg API / PostableCommand</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/7561323#M54602</link>
      <description>&lt;P&gt;I'll explain what I trying to do, there might be other ways to solve my problem.&lt;BR /&gt;&lt;BR /&gt;I'm currently trying to retreive specific data from a layer in an imported dwg file. Right now, I wanted to delete all unnecessary layers (I managed to do it), and then explode what's left (I didn't find a way to do it)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other way, I can also find polylines by parsing the geometry element of my import instance. But i'm missing the text data. Is there a way to get them?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 10:31:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/7561323#M54602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-21T10:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Explode dwg API / PostableCommand</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/9684293#M54603</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is 2020 and I am using Revit 2020.&lt;/P&gt;&lt;P&gt;Does anyone know the workaround to this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as my understanding goes, PostCommands can be used to activate commands by the RevitCommandId found by either using the LookupCommandId or LookupPostableCommandId Method&lt;/P&gt;&lt;P&gt;As said by&amp;nbsp;@Anonymous&amp;nbsp;, no commands related to exploding a DWG or CAD is available in the PostableCommand Enumeration and thus I cannot use the LookupPostableCommandId&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By looking at the Revit journal as inspired by Mr. Tammik's post:&amp;nbsp;&lt;A href="https://thebuildingcoder.typepad.com/blog/2013/10/programmatic-custom-add-in-external-command-launch.html" target="_blank" rel="noopener"&gt;Programmatic Custom Add-In External Command Launch&lt;/A&gt;, the closest I would get to the explode button is "Dialog_Essentials_ImportInstanceExplode" which I thought must be the command name for the Explode command. However, implementing the following code returns an argument exception saying that:&amp;nbsp;&lt;STRONG&gt;'The commandId must be in Autodesk.Revit.UI.PostableCommand or an external command.'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;UIApplication uiapp = commandData.Application;
UIDocument uidoc = uiapp.ActiveUIDocument;
Document doc = uidoc.Document;

uiapp.PostCommand(RevitCommandId.LookupCommandId("Dialog_Essentials_ImportInstanceExplode"));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for the voting to the Revit Idea Station, the&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/revit-ideas/explode-api-access-dwg/idi-p/6637323" target="_blank" rel="noopener"&gt;wish&lt;/A&gt;&amp;nbsp;was raised previously but due to inadequate number of support from the community, the wish was not pursued and the post was since archived.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I go back to &lt;A href="https://thebuildingcoder.typepad.com/blog/2011/02/explode-a-dwg.html" target="_blank" rel="noopener"&gt;UI automation&lt;/A&gt;? or does anyone know the command name or Id required for the explode command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 06:55:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/9684293#M54603</guid>
      <dc:creator>kevin.anggrek</dc:creator>
      <dc:date>2020-08-11T06:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Explode dwg API / PostableCommand</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/10983553#M54604</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;The topic has been archived, however, a solution would be appreciated...&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/revit-ideas/explode-api-access-dwg/idi-p/6637323" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/revit-ideas/explode-api-access-dwg/idi-p/6637323&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 10:08:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/10983553#M54604</guid>
      <dc:creator>samuel.cailletMDQ7N</dc:creator>
      <dc:date>2022-03-04T10:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Explode dwg API / PostableCommand</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/10983570#M54605</link>
      <description>&lt;P&gt;I guess the most efficient way forward with this might be to raise a new wish in the Revit Idea Station, point to the old one, and add many more new votes to get it approved this time around.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 10:16:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/10983570#M54605</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-03-04T10:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Explode dwg API / PostableCommand</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/10988819#M54606</link>
      <description>&lt;P&gt;For the record :&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/revit-ideas/improve-api-access-to-the-ribbon-function-explode-imported-dxf/idi-p/10983624" target="_blank"&gt;Improve API access to the Ribbon function (Explode Imported DXF/DWG) - Autodesk Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 14:55:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/10988819#M54606</guid>
      <dc:creator>samuel.cailletMDQ7N</dc:creator>
      <dc:date>2022-03-07T14:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Explode dwg API / PostableCommand</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/11960432#M54607</link>
      <description>&lt;P&gt;Hi there from year 2023 and Revit 2024! I have the exact same problem that others from previous years. I can't find the explode "RevitCommandId" to run the "PostCommand" method. Does somebody has figured out what is the "RevitCommandId" of the "Explode" command?&amp;nbsp;&lt;/P&gt;&lt;P&gt;This command is totally essential for automated tasks with DWG files, it's a shame that we have so little information about it.&lt;/P&gt;&lt;P&gt;The Revit journal wasn't of help neither. Help is it's content:&lt;/P&gt;&lt;P&gt;'E 12-May-2023 14:21:14.776; 0:&amp;lt;&lt;BR /&gt;Jrn.PushButton "ToolBar , {}{} , Dialog_Essentials_ImportInstanceExplode" _&lt;BR /&gt;, "Full Explode, Control_Essentials_ImportExplode"&lt;/P&gt;&lt;P&gt;'H 12-May-2023 14:21:14.810; 1:&amp;lt;&lt;BR /&gt;Jrn.Data _&lt;BR /&gt;"Transaction Successful" , "Explode Import Instance"&lt;BR /&gt;&lt;BR /&gt;' 0:&amp;lt; &amp;lt;&amp;lt;Begin build CT&amp;gt;&amp;gt;&lt;BR /&gt;'&lt;BR /&gt;&lt;BR /&gt;'Edit mode: IDR_COMMON&lt;BR /&gt;&lt;BR /&gt;'Command:&lt;BR /&gt;&lt;BR /&gt;'Category: 0&lt;BR /&gt;&lt;BR /&gt;'Bar list:&lt;BR /&gt;' Dialog_Revit_DynamicLabelDBar&lt;BR /&gt;' Dialog_Essentials_FilterSelectionNew&lt;BR /&gt;' Dialog_Essentials_ImportInstanceExplode&lt;/P&gt;&lt;P&gt;I have almost no experience reading Revit Journals, but I can notice that the Command line is empty, while previous and latter command indicate their corresponding "RevitCommandId".&lt;/P&gt;&lt;P&gt;Somebody help please!&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 18:54:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-dwg-api-postablecommand/m-p/11960432#M54607</guid>
      <dc:creator>eobimoffice</dc:creator>
      <dc:date>2023-05-12T18:54:25Z</dc:date>
    </item>
  </channel>
</rss>

