Dear Mr. Joe Ye!
May be it is possible to place some example of SAT file import on C# and to link in to some View3D?
Some parts for example:
UIApplication uiapp = commandData.Application;
UIDocument uidoc = uiapp.ActiveUIDocument;
Application app = uiapp.Application;
Document doc = uidoc.Document;
SATImportOptions MySAToptions = new SATImportOptions();
MySAToptions.Placement = ImportPlacement.Shared;
MySAToptions.Unit = ImportUnit.Millimeter
Doc.Link(String file, SATImportOptions MySAToptions, View some view)
Yes, it is possible to import a SAT file to a Revit specivied view.
Here is the SharpDevelop code showing the solution.
public void ImportSat()
{
Document doc = this.ActiveUIDocument.Document;
SATImportOptions MySAToptions = new SATImportOptions();
MySAToptions.Placement = ImportPlacement.Centered;
MySAToptions.Unit = ImportUnit.Millimeter;
Transaction trans = new Transaction(doc);
trans.Start("ImportSat");
doc.Import(@"c:\test\mysat1.sat",MySAToptions,doc.ActiveView);
trans.Commit();
}
We cannot use Document.Link() method to link a sat file, instead calling Document.Import() method.
Joe;
I can use your method for import a rvt view o schedule specific?. i using version 2015 and 2016 of api.