Esempio n. 1
0
 public XbimSpatialStructureElement GetSpatialStructureElement(Guid guid)
 {
     Ifc2x3.UtilityResource.IfcGloballyUniqueId id = new Ifc2x3.UtilityResource.IfcGloballyUniqueId(guid);
     return AllSpatialStructureElements.Where(e => e.GlobalId == id).FirstOrDefault();
 }
 bool IBimSpatialStructureElement.AddContainedBuildingElement(Guid guid)
 {
     IfcGloballyUniqueId id = new Ifc2x3.UtilityResource.IfcGloballyUniqueId(guid);
     XbimBuildingElement element = Document.AllBuildingElements.Where(el => el.GlobalId == id).FirstOrDefault();
     if (element != null)
     {
         AddContainedBuildingElement(element);
         return true;
     }
     return false;
 }
Esempio n. 3
0
 public XbimBuildingElementType GetBuildingElementType(Guid guid)
 {
     Ifc2x3.UtilityResource.IfcGloballyUniqueId id = new Ifc2x3.UtilityResource.IfcGloballyUniqueId(guid);
     return AllBuildingElementTypes.Where(e => e.GlobalId == id).FirstOrDefault();
 }