Open Nested Families as document to export them like a document
Hello everybody,
we are working on an export tool for exporting data from a Revit project to a database system, by using Revit API.
Most of the export functions work fine.
The only problem we have at the moment is, that opening a Nested Family as Document in order to export the model data from this Family, is not working.
I've already tried many suggestions from Autodesk Forum posts, which included some of our problems we currently have. But unfortunately no solution was successfully so far.
The Families I'm talking about are nested *.rfa files, storted in the Revit Document file (*.rvt).
I also checked if they are really Family Documents to prevent exceptions of this kind, but it din't help.
I used the method "LoadFamily" and "EditFamily". But most of the exceptions said, that either the document file was read-only or threw other exceptions. I also tried to solve these problems by using Transactions, which is very common for these kind of use cases. Opening the source Document by using an own Transaction didn't work, too.
It would be pretty nice if somebody could help me with this issue.
With best regards
R. Schoenig