Retrieve family document through file path without prior loading to the project

Retrieve family document through file path without prior loading to the project

lrsmns
Enthusiast Enthusiast
283 Views
2 Replies
Message 1 of 3

Retrieve family document through file path without prior loading to the project

lrsmns
Enthusiast
Enthusiast

Hello,

 

I was wondering if it is feasible to retrieve the family docs from the filepath, without having to load all family docs to the project?

 

I want to display the family info (properties) into the UI; however, my concern is if we have to load all families to the project it would result in big memory data, especially wasteful if not all families are used.

0 Likes
284 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni

Yes, you can open the family RFA file in the Revit API without loading it into the project. It is exactly equivalent to opening the RFA in the Revit family editor without loading it into the project.

  

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

Kennan.Chen
Advocate
Advocate

A parser is essential for converting binary data into structured data in order for a program to process it. The main objective is to interpret the meaning behind the 0s and 1s in the file. Revit serves as one such parser. Additionally, the "Open Design Alliance" offers a parser for Revit files, although it may not be entirely lossless.

 

One possible optimization is to preprocess the RFA files and store the relevant details in a database. This would allow for displaying family information without the need for repeatedly runtime file processing.

0 Likes