<?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 SAT/DWG after import in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/11065400#M74021</link>
    <description>&lt;P&gt;Why do the solutions described above not work in your case? How do they fail? What exactly are you trying to achieve?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2022 11:22:55 GMT</pubDate>
    <dc:creator>jeremy_tammik</dc:creator>
    <dc:date>2022-03-28T11:22:55Z</dc:date>
    <item>
      <title>Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/5501232#M74003</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm looking to explode objects generated as a result of a SAT (or DWG) import into a family document.&lt;/P&gt;&lt;P&gt;I found some code from many years ago suggesting UI automation is the way to achieve this. &amp;nbsp;Is there a better way? (I couldn't find anything).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code suggested something like this, trouble is the explode button is null. &amp;nbsp;How do you determine the code to detect the explode button (I suspect the button might have subsequently changed).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Element el = famDoc.GetElement(famDoc.Import(filename, options, view));&lt;BR /&gt;if(el != null)&lt;BR /&gt;{&lt;BR /&gt;UIDocument uiDoc = (new UIApplication(famDoc.Application)).ActiveUIDocument;&lt;BR /&gt;SelElementSet seleset = SelElementSet.Create();&lt;BR /&gt;SelElementSet selements = uiDoc.Selection.Elements;&lt;BR /&gt;seleset.Insert(el);&lt;BR /&gt;selements.Clear();&lt;BR /&gt;uiDoc.Selection.Elements = seleset;&lt;/P&gt;&lt;P&gt;famDoc.Regenerate();&lt;BR /&gt;Process[] processes = Process.GetProcessesByName( "Revit" );&lt;/P&gt;&lt;P&gt;if (processes.Length &amp;gt; 0)&lt;BR /&gt;{&lt;BR /&gt;PropertyCondition aidCondition = new PropertyCondition(AutomationElement.AutomationIdProperty, "2288");&lt;BR /&gt;AutomationElement ae = AutomationElement.FromHandle(processes[0].MainWindowHandle);&lt;BR /&gt;AutomationElement explodeButton = ae.FindFirst(TreeScope.Children, aidCondition);&lt;BR /&gt;if (explodeButton != null)&lt;BR /&gt;{&lt;BR /&gt;try&lt;BR /&gt;{&lt;BR /&gt;InvokePattern invPattern = explodeButton.GetCurrentPattern(InvokePattern.Pattern) as InvokePattern;&lt;BR /&gt;invPattern.Invoke();&lt;BR /&gt;}&lt;BR /&gt;catch (Exception) { }&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2015 06:41:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/5501232#M74003</guid>
      <dc:creator>GeomGym</dc:creator>
      <dc:date>2015-02-10T06:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/5501328#M74004</link>
      <description>&lt;P&gt;Dear GeoGym,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you want to deal with 3D objects,&lt;/P&gt;&lt;P&gt;instead of exploding an ImportInstance in family context, you could analyze its geometry, extract the solids and create FreeFormElements of them.&lt;/P&gt;&lt;P&gt;FreeFormElement ffe = FreeFormElement.Create(famDoc, solid);&lt;/P&gt;&lt;P&gt;Once created separated Elements, you can do whatever you want with them (add/use face references, parameters, materials).&lt;/P&gt;&lt;P&gt;You can set the offset of single faces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe that may be more useful and reliable than the UI Automation workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To the code itself:&lt;/P&gt;&lt;P&gt;Since there may be more than one Revit instance opened, you better use System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle&lt;/P&gt;&lt;P&gt;to get the correct window handle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have verified that AutomationId is indeed "2288", it may be a question of correct timing.&lt;/P&gt;&lt;P&gt;Note that re-arranging the ribbon bar may take some time, so you may have to insert a Thread.Sleep().&lt;/P&gt;&lt;P&gt;Also, re-arranging the ribbon bar may result in cached AutomationElements becoming invalid, so you may need to get them again if switching between tabs (Insert tab, Modify tab, ...).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2015 08:44:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/5501328#M74004</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2015-02-10T08:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/5501421#M74005</link>
      <description>&lt;P&gt;Dear GeomGym and Revitalizer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just for your information, I recently raised a wish list item for this functionality,&amp;nbsp;CF-2130 [API wish: access to explode command].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Arnošt keeps saying we should raise wish list items for Revit API functionality instead of hacking ... let's see who gets this one solved first &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&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, 10 Feb 2015 10:14:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/5501421#M74005</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-02-10T10:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/5501439#M74006</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there are many wishes which will &lt;EM&gt;never&lt;/EM&gt; be satisfied.&lt;/P&gt;&lt;P&gt;So wait for version 2019 to get access to explode command ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So there is no alternative to finding workarounds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2015 10:38:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/5501439#M74006</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2015-02-10T10:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/5501440#M74007</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Revitalizer and Jeremy,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the suggestion about extracting the solid, much cleaner and better and works well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jeremy, it's always welcome to see improvements to the API. &amp;nbsp;I agree that raising requests is a great thing to do.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jon&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2015 10:39:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/5501440#M74007</guid>
      <dc:creator>GeomGym</dc:creator>
      <dc:date>2015-02-10T10:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/5552726#M74008</link>
      <description>&lt;P&gt;Any luck with exploding an imported cad element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Revit 2015 I'm being&amp;nbsp;forced down the automation line. But I can't seem to get to the Ribbon? The below code fails at ribbonWnd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim processes As Process() = Process.GetProcessesByName("Revit")
Dim mainWndFromHandle As AutomationElement = AutomationElement.FromHandle(processes(0).MainWindowHandle)
Dim nameRibbonCondition As New PropertyCondition(AutomationElement.NameProperty, "RibbonHostWindow")
Dim typeRibbonCondition As New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Pane)
Dim andCondition As New AndCondition(typeRibbonCondition, nameRibbonCondition)
Dim ribbonWnd As AutomationElement = mainWndFromHandle.FindFirst(TreeScope.Children, andCondition)

&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Mar 2015 09:29:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/5552726#M74008</guid>
      <dc:creator>david_rock</dc:creator>
      <dc:date>2015-03-23T09:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/6507783#M74009</link>
      <description>Hi Jeremy,&lt;BR /&gt;&lt;BR /&gt;Any update on the request for API access to Explode? I am trying to get info on the text elements in the DWG which is not possible by analyzing the geometry of the un-exploded DWG.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Harry</description>
      <pubDate>Thu, 18 Aug 2016 11:39:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/6507783#M74009</guid>
      <dc:creator>boostyourbim</dc:creator>
      <dc:date>2016-08-18T11:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/6512245#M74010</link>
      <description>&lt;P&gt;+1&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 08:31:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/6512245#M74010</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2016-08-20T08:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8603706#M74011</link>
      <description>&lt;P&gt;This is an interesting idea, but can you elaborate how would you extract the solids from imported SAT file and iterate through them?&lt;/P&gt;
&lt;P&gt;SAT file comes in as one element, so not how to filter for solids.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 19:18:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8603706#M74011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-18T19:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8604885#M74012</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the solid(s) of your ImportInstance, you could have a closer look at these code samples:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/getting-beam-column-and-wall-geometry/m-p/8138893" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/getting-beam-column-and-wall-geometry/m-p/8138893&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 09:34:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8604885#M74012</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2019-02-19T09:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8604937#M74013</link>
      <description>&lt;P&gt;I am afraid that your +1 here in the forum will go unnoticed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you ensure that a wish list entry is present for this in the Revit Idea Station and add your votes for that, they will have real impact.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 10:02:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8604937#M74013</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-02-19T10:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8605658#M74014</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1103138"&gt;@Revitalizer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As the tutorial suggests, I was able to use the get_geometry() method to iterate through the geometries in imported element and look for solids. Then I'm using FreeFormElement.Create(doc, solid) to recreate the solid(s).&lt;/P&gt;
&lt;P&gt;I tested this on an SAT file I made in Rhino, the file has one cube and one cylinder. Once imported into Revit and going through the workflow above, the result is both cube and cylinder in one single FreeFormElement. (see screenshot attached)&lt;/P&gt;
&lt;P&gt;I was expecting two separate elements. Am I missing something? or is it SAT property that doesn't break down to primitive geometry?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;-Morteza&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 14:53:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8605658#M74014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-19T14:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8607628#M74015</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you could use SolidUtils.SplitVolumes(yourFusionedSolid) to split it into separate Solids.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A Solid obviously can be made of unconnected parts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 07:22:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8607628#M74015</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2019-02-20T07:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8609198#M74016</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;that did the trick&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 18:09:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8609198#M74016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-20T18:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8609793#M74017</link>
      <description>&lt;P&gt;Any idea why the recreated elements (using FreeformElement.Create ) still show as "imported categories" in visibility graphics? Is there a way to avoid that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 21:41:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8609793#M74017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-20T21:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8610711#M74018</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you need to set yourFreeFormElement.SubCategory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add a new Category to your Family's FamilyCategory.SubCategories and assign this sub-Category to your FFE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 08:51:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8610711#M74018</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2019-02-21T08:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8611500#M74019</link>
      <description>&lt;P&gt;I am doing that by using the code below:&lt;/P&gt;
&lt;PRE&gt;        public void AssignSubCategory(Document document, FreeFormElement element, String subCategoryName, String materialName)
        {
            Category cat = document.OwnerFamily.FamilyCategory;
            Category subCat = document.Settings.Categories.NewSubcategory(cat, subCategoryName);

            ElementId materialId = Material.Create(document, materialName);
            subCat.Material = document.GetElement(materialId) as Material;
            element.Subcategory = subCat;
        }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;foreach (Solid solid in solids)
                        {
                            FreeFormElement nativeSolid = FreeFormElement.Create(doc, solid);
                            AssignSubCategory(doc, nativeSolid, "subCategory "+ct.ToString(), "material "+ct.ToString());
                            ct += 1;
                        }&lt;/PRE&gt;
&lt;P&gt;The result model has the subcategories assigned correctly but for some reason also shows as "Imports in Families" in visibility graphics. (see screenshots attached).&lt;/P&gt;
&lt;P&gt;Is there anyway to remove it from the "imports in Families"?&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>Thu, 21 Feb 2019 14:33:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/8611500#M74019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-21T14:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/11064047#M74020</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need a method to explode CAD files once imported I think the profs are using a cad script first then bringing the aftermath into revit and operating on the 1k+ lines you get from aussie manufacturers in the worst of cases.&lt;/P&gt;&lt;P&gt;did you start an idea station or wishlist for this or at least do you know of one?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 07:40:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/11064047#M74020</guid>
      <dc:creator>FrankHolidaytoiling</dc:creator>
      <dc:date>2022-03-27T07:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Explode SAT/DWG after import</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/11065400#M74021</link>
      <description>&lt;P&gt;Why do the solutions described above not work in your case? How do they fail? What exactly are you trying to achieve?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 11:22:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/explode-sat-dwg-after-import/m-p/11065400#M74021</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-03-28T11:22:55Z</dc:date>
    </item>
  </channel>
</rss>

