Hi!
I'm trying to create a script in Revit API that would export model groups in a project as separate .ifc files, but I'm having trouble figuring out what the exact process would be. Maybe someone has some recommendations for this? There's many questions rolled into one here, if I manage to solve only one of them the other one's probably wouldn't matter any more:
1. Inside Revit's UI there is a button to turn a selected group into a linked file. So far I have not found a corresponding API call. Is there anything for this function in the API? This would make it rather easy to turn the groups into linked files and subsequently export all of them to .ifc.
2. Since the first option did not work, I figured the next best thing would be to programmatically create a new project document and copy the group into this one and export it from there. Are there any other options, maybe exporting only part of the file as .ifc, that I have not picked up on?
3. The correct way to transfer elements between documents is the Revit.DB.ElementTransformUtils.CopyElements function, right? This function is overloaded and I need the second one. I'm writing in Python inside Dynamo and selecting the right one is an ordeal itself. However, in this case it seems that the implementation in Python is missing the other overloads beside the first one (which can only be used to copy and move elements inside one document), so far I have not found any ways to access this function (ElementTransformUtils.CopyElements.Overloads.Functions array has only one function, the first one). Any tips on how to start sorting out this overloading question? could it be a Python problem, Revit API problem or a Dynamo problem?
Many thanks,
Taavi