Does the Revit api provide the bind linked file method ?

Does the Revit api provide the bind linked file method ?

natanatalili
Contributor Contributor
2,006 Views
5 Replies
Message 1 of 6

Does the Revit api provide the bind linked file method ?

natanatalili
Contributor
Contributor

 

Does the Revit api provide the bind linked file method ?

In Revit UI , user can bind the Links instance.

But I can't find the method from API.

0 Likes
2,007 Views
5 Replies
Replies (5)
Message 2 of 6

augusto.goncalves
Alumni
Alumni

You will need to first create with RevitLinkType.Create then put a instance with RevitLinkInstance.Create method.

 

This post may help you http://adndevblog.typepad.com/aec/2012/07/inserting-a-revit-link-file.html

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 3 of 6

boostyourbim
Advocate
Advocate

Hi Augusto,

 

Binding an RVT link is not the same as placing an instance of an RVT link.

 

bind.JPG

0 Likes
Message 4 of 6

jeremytammik
Autodesk
Autodesk

I just discussed this topic in another newer thread on 'attaching a Revit link':

 

 

In the course of that discussion, I discovered three other unresolved discussion threads requesting the same functionality:

 

 

The development team confirmed that this functionality is currently not available and ask all interested developers to create an entry for it in the Revit Idea Station and vote for that:

 

This is currently not possible through the API. This seems like a good thing for Revit Ideas, especially if so many people are asking for it. Please submit an idea for this to the Revit Idea Station, if there is none there already, and vote for the existing one, if there is. Thank you!

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 5 of 6

jeremytammik
Autodesk
Autodesk

Please vote for the wish in the Revit Idea Station:

 

https://forums.autodesk.com/t5/revit-ideas/binding-linked-revit-model-with-api/idi-p/8590114

 

Thank you!



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 6 of 6

AntArq_
Explorer
Explorer

In case anyone find this helpful, I have found an alternative solution in the second overload of the CopyElements method, which allows you to bring in elements from other documents. Once you have the RevitLinkInstances, it is easy to retrieve (and filter) the Elements you want to bring to the current Document for each one.

 

Heads up: don't forget to apply the RevitLinkInstance transformation (traslation and rotation) in the copypasted elements  using the information of RevitLinkInstance.GetTotalTransform(). In my case I used the ElementTransformUtils for this. 

 

I hope this helps. 

Best regards,

Antonio

0 Likes