Esempio n. 1
0
        private XbimSceneModel GetModel(String Model)
        {
            XbimSceneModel model = null;
            try
            {
                model = Session["XbimModel"+Model] as XbimSceneModel;
            } catch (Exception){}

            if (model == null)
            {
                var xbim = new XbimModelHandler(ModelPath + Model + ModelExt);
                xbim.Init();
                model = new XbimSceneModel(xbim);

                Session["XbimModel"+Model] = model;
            }
            return model;
        }
Esempio n. 2
0
 public XbimSceneModel(XbimModelHandler Model)
 {
     _model = Model;
     _model.Init();
 }