Exemple #1
0
 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);
 }
Exemple #2
0
    // 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);
    }
Exemple #3
0
    // 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);
    }
Exemple #4
0
    // 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);
    }