示例#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);
 }
示例#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);
    }
示例#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);
    }
示例#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);
    }