Exporting in-place families for use in new documents.

Exporting in-place families for use in new documents.

jeroenvanlithWWCBG
Contributor Contributor
343 Views
4 Replies
Message 1 of 5

Exporting in-place families for use in new documents.

jeroenvanlithWWCBG
Contributor
Contributor

Hi All,

 

I have a question. I want to re-use in-place furniture families from document A into document B, programmatically.

 

I have thought of two ways: 

 

option 1: export/save the in-place family from document A to a separate .rfa file. 


option 2: load in-place family from document A to document B directly. 

 

But haven't found ways to do this programmatically.

 

Could anyone help me?

 

Thanks!

 

Jeroen

0 Likes
344 Views
4 Replies
Replies (4)
Message 2 of 5

jeremy_tammik
Alumni
Alumni

Dear Jeroen,

  

The API will hardly provide any functionality that is not available in the user interface, so that will be the easiest way to research for the best approach. Afaik, RFA provides no support whatsoever for in-place families; they live in the RVT  environment only. However, as a BIM element in the RVT, it ought to be possible to copy an in-place family between different documents using the CopyElements copy and paste API:

  

https://www.revitapidocs.com/2023/b22df8f6-3fa3-e177-ffa5-ba6c639fb3dc.htm

  

Cheers,

  

Jeremy

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 5

jeroenvanlithWWCBG
Contributor
Contributor

Thank you for your quick reply Jeremy! I will study your suggestions and update when I've found something.

0 Likes
Message 4 of 5

RPTHOMAS108
Mentor
Mentor

If you group the contents of the in-place family in the in-place family editor then you can save the group to a rfa file

 

However, there is no support for editing in-place families within the API.

Message 5 of 5

jeroenvanlithWWCBG
Contributor
Contributor
Thank you, it's a pity I can't edit in-place families in the API.