About Loading Autodesk Families Using Revit API

About Loading Autodesk Families Using Revit API

yuichi.abe
Participant Participant
731 Views
3 Replies
Message 1 of 4

About Loading Autodesk Families Using Revit API

yuichi.abe
Participant
Participant

I have a question about how to download and load specific Autodesk Families into a project using the Revit API.

 

For instance, I would like to use the API to specify and load specific families, like chair families from the "Furniture" category as shown in the attached image, directly into a project. Could you please provide the necessary API commands or procedures to achieve this process?

yuichiabe_0-1721738149603.png

 

yuichiabe_2-1721738204414.png

 

Additionally, I am developing an add-in that manipulates specific families, and I want to enable users to download these families in advance when using this add-in. If there are any effective approaches or recommended methods for this, your advice would be greatly appreciated.

 

This inquiry is aimed at providing a more user-friendly add-in for users. Your support in this busy time would be highly appreciated.

Thank you in advance for your help.

0 Likes
Accepted solutions (1)
732 Views
3 Replies
Replies (3)
Message 2 of 4

yuichi.abe
Participant
Participant
Accepted solution

@yuichi.abe 
We cannot download Autodesk families using the Revit API. The Document.LoadFamily method only allows downloading of local families.

0 Likes
Message 3 of 4

mizrachi_amir2
Advocate
Advocate

Can Document.LoadFamily() also load remote families (those that are hosted in a server and are not necessarily local)?

0 Likes
Message 4 of 4

yuichi.abe
Participant
Participant

@mizrachi_amir2 

Thank you for your response.
Based on my research, the Revit API does not support directly loading families from remote servers or online sources using the Document.LoadFamily() method. By the way, I must apologize if this diverts slightly from the main topic of discussion. This topic primarily concerns whether Autodesk Families can be loaded directly via the API. If your question intends to explore loading non-Autodesk families or other types of files, perhaps we could discuss this in a different topic?

0 Likes