コード例 #1
0
ファイル: Manager.cs プロジェクト: kieran196/BiMRemoteCollab
 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
ファイル: Manager.cs プロジェクト: kanbang/Unity-IFCEngine
    // 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
ファイル: Manager.cs プロジェクト: kieran196/BiMRemoteCollab
    // 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);
    }