Load() public method

public Load ( ) : void
return void
Beispiel #1
0
    private void LoadDXF(string path = null)
    {
        //try
        //{
        GetComponent <MeshGenerater.DataContainer>().ResetError();
        if (path == null)
        {
            iLoader = new DiskFile(content);
        }
        else
        {
            iLoader = new DiskFile(path);
        }

        DXFConvert.DXFStructure dxfStructure = new DXFConvert.DXFStructure(iLoader);
        dxfStructure.Load();
        iLoader.Dispose();
        TView.Set(dxfStructure);
        NormalCenter.GetCenter(TView.transform);
        GetComponent <MeshGenerater.DataContainer>().SerializeData();
        Camera.main.GetComponent <BLCameraControl>().LookAtResAutoDis(GameObject.Find("TViewBase").transform);
        //Debug.Log("OK:" + path);
        //}
        //catch (System.Exception ex)
        //{
        //    Debug.Log("Error:" +ex.Message);
        //}
    }
 private void LoadDXF(string path)
 {
     try
     {
         DiskFile iLoader = new DiskFile(path);
         DXFConvert.DXFStructure dxfStructure = new DXFConvert.DXFStructure(iLoader);
         dxfStructure.Load();
         iLoader.Dispose();
         GoView.Set(dxfStructure);
         Debug.Log("OK:" + path);
     }
     catch (System.Exception ex)
     {
         Debug.Log("Error:" + path);
         Debug.LogError(ex.ToString());
     }
 }
 private void LoadDXF(string path)
 {
     try
     {
         DiskFile iLoader = new DiskFile(path);
         DXFConvert.DXFStructure dxfStructure = new DXFConvert.DXFStructure(iLoader);
         dxfStructure.Load();
         iLoader.Dispose();
         GoView.Set(dxfStructure);
         Debug.Log("OK:" + path);
     }
     catch (System.Exception ex)
     {
         Debug.Log("Error:" + path);
         Debug.LogError(ex.ToString());
     }
 }