Attach a revit link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I try to link a revit file and then bind it in my host project.
I've created my linked instance but can't find a way to bind it..
Here is my code :
_____________________________________________________________________________
string testFile = "C:\\Users\\asabatier\\xxx.rvt";
ModelPath linkpath = ModelPathUtils.ConvertUserVisiblePathToModelPath(testFile);
RevitLinkOptions options = new RevitLinkOptions(false);
tr.Start("Base Vie");
Autodesk.Revit.DB.LinkLoadResult result = RevitLinkType.Create(doc, linkpath, options);
RevitLinkInstance instance = RevitLinkInstance.Create(doc, result.ElementId);
__________________________________________________________________________
I've tried to create a gropu with my link but as it says it creates a group but don't attach my link..
Thanks for your help.
Alexandre