Hello,
I am having trouble figuring out how to export to DWF format in my pluggin. I understand there exsits a function:
Document :.Export Method (String, String, ViewSet, DWFExportOptions), however I dont quite understnad how to set the inputs. I have looked at the exmaples in the SDK however they are very long and I dont know how to implement them. In navisworks I was able to use the function ExportToDwf with the oinly input as filepath, I would like to be able to do something similar. Any examples or help would be appreciated.
Here isw what I have done:
UIDocument CurDocument = revit.Application.ActiveUIDocument;
ViewSet views = new ViewSet();
views.Insert(CurDocument.ActiveView);
Document MyDoc = CurDocument.Document;
DWFExportOptions options = new DWFExportOptions();
bool exported = MyDoc.Export(@"C:\Users\Jeff", "ExportDWF!", views, options);
however I receive this error:
Exporting to DWF requires that document is modifiable