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;
        }
示例#2
0
 public XbimSceneModel(XbimModelHandler Model)
 {
     _model = Model;
     _model.Init();
 }