Hi, I’ve enabled a public method in my plguin to permit call of the importer by code. The inputs are an ifc file name, a target revit file name, and a template file name.
Soon I will add an argument for configuration options.
It’s available in the latest build for 2017, and will be included in the next release for other versions. http://www.geometrygym.com/installing
What I’ve struggled with is how to correctly reference the dll and execute the method in python (or similar) in Dynamo. I’m sure this is just my lack of experience and knowledge of this, I’d be very interested to learn how. Loading my dll’s as zerotouch could work if you wade through all the public classes and methods. I wish zero touch could only load public methods etc explicitly tagged.
I’ve attached some test plugin code that shows how this can be executed. There is a reference to dll C:\Program Files\Geometry Gym\Revit\ggRevitIFC2017.dll If there is a way to post a zipped solution, let me know.
I look forward to learning more,
public class ConvertIFCFiles : IExternalCommand
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
string ifcFileName = @"C:\My Work\Geometry Gym\Documents\GeometryGym\BIM\ifc\grasshopper\revit\170816 demo column.ifc";
string revitFileName = @"C:\My Work\Geometry Gym\Documents\GeometryGym\BIM\ifc\grasshopper\revit\170816 demo column.rvt";
string templateFileName = @"C:\ProgramData\Autodesk\RVT 2018\Templates\Australia\Structural Analysis-DefaultAUSENU.rte";
string log = "";
if(!GGYM.ggRevitIFC.ConvertFile(commandData.Application, ifcFileName, revitFileName,templateFileName, out log))