I am trying to link an ifc into an empty Revit file using design automation. I want to be able to check the parameters of the elements of the ifc model. I managed to do it locally, I am taking the ifcname.ifc.RVT generated whit this two lines of code using Revit.IFC.Import:
importer importer = Importer.CreateImporter(doc, ifcFileName, options);
importer.ReferenceIFC(doc, ifcFileName, options);
After this I am able to open the new document generated and read the parameters with this lines:
var docifc = app.OpenDocumentFile(ifcFileName+".RVT");
var collector = new FilteredElementCollector(docifc).WhereElementIsNotElementType();
I tried to do the same using desing automation on the Autodesk platform(Autodesk Forge), creating a Temporary Upload file called Input.ifc.RVT. The problem comes after the workitem has ended successfully and the temporary upload file Input.ifc.RVT becomes an empty Revit file with 424kb, missing the ifc imported content. I hope you have any tip to make it work or a suggestion about anything I might be missing. Looking forward to your answers.
Using Design Automation I tried to get the ifcname.ifc.RVT generated after trying to link an IFC to be able to read the parameters of the elements in the IFC, but I am getting an empty Revit file. Do you have any clue how could I get the file with the IFC model on it?
Using Application.OpenIFCDocument Method (String) I do not get the parameters well imported so I am trying to get the linked file which contains all the parameters.
Also I tried:
var linkType = RevitLinkType.CreateFromIFC(doc, ifc_resource, linkPathRvt, true, new RevitLinkOptions(false));
But I get this error: Error: Non-optional output [Input.ifc.RVT] is missing.
I have checked this post but I am not feeling lucky: How to link IFC with Revit Design-Automation