Message 1 of 12
How to import dwf file to revit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
just like navigating to the "Insert" tab and select "DWF Markup", I want to link dwf file by codes.
I wrote these codes, but nothing happens when Running. Is there anything wrong in DWFImportOptions' parameter? list_ViewSheet is a view sheet list of revit.
DWFImportOptions ops = new DWFImportOptions(list_ViewSheet.Select(o => o.Id).ToList());
using (Transaction ts = new Transaction(doc, "插入DWF校审文件"))
{
ts.Start();
doc.Link(filePath, ops);
ts.Commit();
}
Developer Advocacy and Support +