How to List Assembly Names In Linked File

How to List Assembly Names In Linked File

CHtCAD
Participant Participant
471 Views
1 Reply
Message 1 of 2

How to List Assembly Names In Linked File

CHtCAD
Participant
Participant

We are trying to create a drop down dialogue which lists all the assemblies in a linked file.

 

Is this even possible via the API. 

 

William

0 Likes
Accepted solutions (1)
472 Views
1 Reply
Reply (1)
Message 2 of 2

RPTHOMAS108
Mentor
Mentor
Accepted solution

If the link is loaded then the project document of the link exists in the document set

 

UIApplication.Application.Documents

From set you can identify via Document.IsLinked

 

For a RevitLinkInstance you can also get the document via RevitLinkInstance.GetLinkDocument

 

You can filter for elements such as assembly instances in link documents as you would in the main document.

 

 

 

 

0 Likes