<?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: Import SAT files from the API in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/import-sat-files-from-the-api/m-p/4681565#M79485</link>
    <description>&lt;P&gt;Dear Mr. Joe Ye!&lt;/P&gt;&lt;P&gt;May be it is possible to place some example of SAT file import on C# and to link in to some View3D?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some parts for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UIApplication uiapp = commandData.Application;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UIDocument uidoc = uiapp.ActiveUIDocument;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application app = uiapp.Application;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Document doc = uidoc.Document;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SATImportOptions MySAToptions = new SATImportOptions();&lt;BR /&gt;MySAToptions.Placement = ImportPlacement.Shared;&lt;BR /&gt;MySAToptions.Unit = ImportUnit.Millimeter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doc.Link(String file, SATImportOptions MySAToptions, View some view)&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2013 12:20:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-09T12:20:59Z</dc:date>
    <item>
      <title>Import SAT files from the API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/import-sat-files-from-the-api/m-p/3902783#M79483</link>
      <description>&lt;P&gt;Is it possible to import a SAT file from the API?&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;</description>
      <pubDate>Thu, 02 May 2013 06:40:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/import-sat-files-from-the-api/m-p/3902783#M79483</guid>
      <dc:creator>GeomGym</dc:creator>
      <dc:date>2013-05-02T06:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Import SAT files from the API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/import-sat-files-from-the-api/m-p/3902863#M79484</link>
      <description>Revit 2014 exposed the API to import SAT file. &lt;BR /&gt;&lt;BR /&gt;public ElementId Import(&lt;BR /&gt;	string file,&lt;BR /&gt;	SATImportOptions options,&lt;BR /&gt;	View pDBView&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;However, Revit 2013 didn't expose this overload of Import()&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 May 2013 08:09:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/import-sat-files-from-the-api/m-p/3902863#M79484</guid>
      <dc:creator>Joe.Ye</dc:creator>
      <dc:date>2013-05-02T08:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Import SAT files from the API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/import-sat-files-from-the-api/m-p/4681565#M79485</link>
      <description>&lt;P&gt;Dear Mr. Joe Ye!&lt;/P&gt;&lt;P&gt;May be it is possible to place some example of SAT file import on C# and to link in to some View3D?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some parts for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UIApplication uiapp = commandData.Application;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UIDocument uidoc = uiapp.ActiveUIDocument;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application app = uiapp.Application;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Document doc = uidoc.Document;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SATImportOptions MySAToptions = new SATImportOptions();&lt;BR /&gt;MySAToptions.Placement = ImportPlacement.Shared;&lt;BR /&gt;MySAToptions.Unit = ImportUnit.Millimeter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doc.Link(String file, SATImportOptions MySAToptions, View some view)&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2013 12:20:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/import-sat-files-from-the-api/m-p/4681565#M79485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-09T12:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Import SAT files from the API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/import-sat-files-from-the-api/m-p/4696137#M79486</link>
      <description>&lt;P&gt;&lt;BR /&gt;Yes, it is possible to import a SAT file to a Revit specivied view.&lt;/P&gt;
&lt;P&gt;Here is the SharpDevelop code showing the solution.&lt;/P&gt;
&lt;P&gt;public void ImportSat()&lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; Document doc = this.ActiveUIDocument.Document;&lt;/P&gt;
&lt;P&gt;SATImportOptions MySAToptions = new SATImportOptions();&lt;BR /&gt; MySAToptions.Placement = ImportPlacement.Centered;&lt;BR /&gt; MySAToptions.Unit = ImportUnit.Millimeter;&lt;BR /&gt; &lt;BR /&gt; Transaction trans = new Transaction(doc);&lt;BR /&gt; trans.Start("ImportSat");&lt;BR /&gt; &lt;BR /&gt; doc.Import(@"c:\test\mysat1.sat",MySAToptions,doc.ActiveView);&lt;BR /&gt; trans.Commit(); &lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;We cannot use Document.Link() method to link a sat file, instead calling Document.Import() method.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2013 09:32:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/import-sat-files-from-the-api/m-p/4696137#M79486</guid>
      <dc:creator>Joe.Ye</dc:creator>
      <dc:date>2013-12-16T09:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Import SAT files from the API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/import-sat-files-from-the-api/m-p/5918147#M79487</link>
      <description>&lt;P&gt;Joe;&lt;BR /&gt;I can use your method for import a rvt view o schedule specific?. i&amp;nbsp;using version 2015 and 2016 of api.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 18:04:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/import-sat-files-from-the-api/m-p/5918147#M79487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T18:04:14Z</dc:date>
    </item>
  </channel>
</rss>

