public void importIFC(string path, string fileName) { print("Starting IFC Import.."); import = GetComponentInChildren <ImportIFC>(); import.ImportFinished += new ImportIFC.CallbackEventHandler(ImportIsFinished); //import.Init(); import.ImportFile(Path.GetFullPath(path), fileName, useNamesInsteadOfTypes); }
// Use this for initialization void Start() { string name = "IfcOpenHouseGeoRef"; string file = "Assets/IFCImporter/IFCFiles/" + name + ".ifc"; import = GetComponentInChildren <ImportIFC>(); import.ImportFinished += new ImportIFC.CallbackEventHandler(ImportIsFinished); import.Init(); import.ImportFile(Path.GetFullPath(file), name); }
// Use this for initialization void Start() { name = ifcName; string file = "Assets/IFCHandling/IFCImporter/IFCFiles/" + name + ".ifc"; import = GetComponentInChildren <ImportIFC>(); import.ImportFinished += new ImportIFC.CallbackEventHandler(ImportIsFinished); import.Init(); import.ImportFile(Path.GetFullPath(file), name, useNamesInsteadOfTypes); }
// Use this for initialization void Start() { string name = "IfcOpenHouseGeoRef"; #if UNITY_EDITOR string file = "Assets/IFCImporter/IFCFiles/" + name + ".ifc"; #else string file = "./" + name + ".ifc"; #endif import = GetComponentInChildren <ImportIFC>(); import.ImportFinished += new ImportIFC.CallbackEventHandler(ImportIsFinished); import.Init(); import.ImportFile(Path.GetFullPath(file), name, useNamesInsteadOfTypes); }