<?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: Batch process export from Revit to Navisworks in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6570724#M63250</link>
    <description>&lt;P&gt;Here is code example you can refine and run, FYI:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)&lt;BR /&gt; {&lt;BR /&gt; Application revitApp = commandData.Application.Application;&lt;BR /&gt; string [] files = Directory.GetFiles(@"&amp;lt;your folder contains rvt files&amp;gt;", "*.rvt", SearchOption.TopDirectoryOnly);&lt;BR /&gt; foreach (var file in files)&lt;BR /&gt; {&lt;BR /&gt; // open each rvt&lt;BR /&gt; Document rvtDoc = revitApp.OpenDocumentFile(file);&lt;BR /&gt; // &lt;BR /&gt; // find one 3d view&lt;BR /&gt; FilteredElementCollector coll = new FilteredElementCollector(rvtDoc);&lt;BR /&gt; View3D v3d = coll.OfClass(typeof(View3D)).ToElements().Cast&amp;lt;View3D&amp;gt;().Where(v =&amp;gt; !v.IsTemplate).First();&lt;BR /&gt; //&lt;BR /&gt; // create export options, you may need to specify more options&lt;BR /&gt; NavisworksExportOptions opt = new NavisworksExportOptions();&lt;BR /&gt; opt.ExportScope = NavisworksExportScope.View;&lt;BR /&gt; opt.ViewId = v3d.Id;&lt;BR /&gt; //&lt;BR /&gt; // export the 3d view model to nwc&lt;BR /&gt; rvtDoc.Export(@"&amp;lt;your export folder&amp;gt;", rvtDoc.Title + ".nwc", opt);&lt;BR /&gt; rvtDoc.Close(false);&lt;BR /&gt; } &lt;BR /&gt; return Result.Succeeded;&lt;BR /&gt; }&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2016 14:39:17 GMT</pubDate>
    <dc:creator>JimJia</dc:creator>
    <dc:date>2016-09-19T14:39:17Z</dc:date>
    <item>
      <title>Batch process export from Revit to Navisworks</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6536199#M63244</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a 4-5 revit models, at frequently I need to exported 3d views in Navisworks for clash checks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any batch process for export my Revit 3D views of each model into Navisworks as (.nwc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be useful if anybody has any macro. Appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 10:25:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6536199#M63244</guid>
      <dc:creator>madhusudhana_rao</dc:creator>
      <dc:date>2016-09-01T10:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Batch process export from Revit to Navisworks</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6536577#M63245</link>
      <description>&lt;P&gt;Try to use "Batch Utility" from Navisworks and set the export settings to the 3D views you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the following list: &lt;A title="To Generate a List of All Design Files Used in the Current Model" href="https://knowledge.autodesk.com/support/navisworks-products/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Navisworks/files/GUID-59872D1F-3928-4927-AA93-0AF937F2AB55-htm.html" target="_blank"&gt;To Generate a List of All Design Files Used in the Current Model&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 13:48:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6536577#M63245</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2016-09-01T13:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Batch process export from Revit to Navisworks</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6538276#M63246</link>
      <description>&lt;P&gt;Thanks for your prompt response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would Navisworks Batch utility do perform like the below items ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) Automatically open my Archi / Stru / M&amp;amp;E central models from Revit....&lt;/P&gt;&lt;P&gt;b) Would Go to the 3D view as specified.....&lt;/P&gt;&lt;P&gt;c) Export the 3d View in shared co-ordinate system....&lt;/P&gt;&lt;P&gt;d) save at desired folder as (.nwc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works.... my issue absolutely solved.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks once again&lt;/P&gt;&lt;P&gt;Madhu&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 03:52:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6538276#M63246</guid>
      <dc:creator>madhusudhana_rao</dc:creator>
      <dc:date>2016-09-02T03:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Batch process export from Revit to Navisworks</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6540563#M63247</link>
      <description>&lt;P&gt;Yes you can import all the trades models in one NWF file and adjust the NWC export settings to export the 3D view in each file.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 04:23:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6540563#M63247</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2016-09-03T04:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Batch process export from Revit to Navisworks</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6558522#M63248</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Revit provides Navisworks export API which can achieve your request:&lt;/P&gt;
&lt;P&gt;. Iterate all Revit model and open it with API:&amp;nbsp;Autodesk.Revit.ApplicationServices.OpenDocument(string)&lt;/P&gt;
&lt;P&gt;. Create export option of&amp;nbsp;NavisworksExportOptions&lt;/P&gt;
&lt;P&gt;. Call Document.Export(string folder, string name, NavisworksExportOptions options);&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 08:04:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6558522#M63248</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2016-09-13T08:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Batch process export from Revit to Navisworks</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6558543#M63249</link>
      <description>&lt;P&gt;I guess your response is suitable for my question...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please write a small API programming code to the automation process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 08:15:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6558543#M63249</guid>
      <dc:creator>madhusudhana_rao</dc:creator>
      <dc:date>2016-09-13T08:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Batch process export from Revit to Navisworks</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6570724#M63250</link>
      <description>&lt;P&gt;Here is code example you can refine and run, FYI:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)&lt;BR /&gt; {&lt;BR /&gt; Application revitApp = commandData.Application.Application;&lt;BR /&gt; string [] files = Directory.GetFiles(@"&amp;lt;your folder contains rvt files&amp;gt;", "*.rvt", SearchOption.TopDirectoryOnly);&lt;BR /&gt; foreach (var file in files)&lt;BR /&gt; {&lt;BR /&gt; // open each rvt&lt;BR /&gt; Document rvtDoc = revitApp.OpenDocumentFile(file);&lt;BR /&gt; // &lt;BR /&gt; // find one 3d view&lt;BR /&gt; FilteredElementCollector coll = new FilteredElementCollector(rvtDoc);&lt;BR /&gt; View3D v3d = coll.OfClass(typeof(View3D)).ToElements().Cast&amp;lt;View3D&amp;gt;().Where(v =&amp;gt; !v.IsTemplate).First();&lt;BR /&gt; //&lt;BR /&gt; // create export options, you may need to specify more options&lt;BR /&gt; NavisworksExportOptions opt = new NavisworksExportOptions();&lt;BR /&gt; opt.ExportScope = NavisworksExportScope.View;&lt;BR /&gt; opt.ViewId = v3d.Id;&lt;BR /&gt; //&lt;BR /&gt; // export the 3d view model to nwc&lt;BR /&gt; rvtDoc.Export(@"&amp;lt;your export folder&amp;gt;", rvtDoc.Title + ".nwc", opt);&lt;BR /&gt; rvtDoc.Close(false);&lt;BR /&gt; } &lt;BR /&gt; return Result.Succeeded;&lt;BR /&gt; }&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 14:39:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/batch-process-export-from-revit-to-navisworks/m-p/6570724#M63250</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2016-09-19T14:39:17Z</dc:date>
    </item>
  </channel>
</rss>

