public XbimModelViewModel(IfcProject project, IXbimViewModel parent)
 {
     xbimModel = project.ModelOf as XbimModel;
     _project = project;
     this.CreatingParent = parent;
     IEnumerable subs = this.Children; //call this once to preload first level of hierarchy   
 }
Exemple #2
0
        public ProjectType(IfcProject ifcProject, CoBieLiteHelper helper)
            : this()
        {

          //  _ifcProject = ifcProject;
            externalEntityName = helper.ExternalEntityName(ifcProject);
            externalID = helper.ExternalEntityIdentity(ifcProject);
            externalSystemName = helper.ExternalSystemName(ifcProject);
            ProjectName = ifcProject.Name;
            ProjectDescription = ifcProject.Description;

        }
 public SpatialViewModel(IfcProject project)
 {
     xbimModel = project.ModelOf as XbimModel;
     this.spatialStructureLabel = Math.Abs(project.EntityLabel);
     IEnumerable subs = this.Children; //call this once to preload first level of hierarchy          
 }