Exemple #1
0
 public SiteType(IfcSite ifcSite, CoBieLiteHelper helper)
     : this()
 {
   //  _ifcSite = ifcSite;
     externalEntityName = helper.ExternalEntityName(ifcSite);
     externalID = helper.ExternalEntityIdentity(ifcSite);
     externalSystemName = helper.ExternalSystemName(ifcSite);
     SiteName = ifcSite.LongName;
     SiteDescription = ifcSite.Description;
 }
        public void AddSite(IfcSite subSite)
        {
            var decomposition = IsDecomposedBy.FirstOrDefault();

            if (decomposition == null) //none defined create the relationship
            {
                var relSub = Model.Instances.New <IfcRelAggregates>();
                relSub.RelatingObject = this;
                relSub.RelatedObjects.Add(subSite);
            }
            else
            {
                decomposition.RelatedObjects.Add(subSite);
            }
        }
 internal XbimSiteQuantities(IfcSite site) : base(site, "SiteQuantities") { }
 /// <summary>
 ///   Adds Site to the IsDecomposedBy Collection.
 /// </summary>
 public static void AddSite(this IfcProject ifcProject, IfcSite site)
 {
     IEnumerable<IfcRelDecomposes> decomposition = ifcProject.IsDecomposedBy;
     if (decomposition.Count() == 0) //none defined create the relationship
     {
         IfcRelAggregates relSub = ifcProject.ModelOf.Instances.New<IfcRelAggregates>();
         relSub.RelatingObject = ifcProject;
         relSub.RelatedObjects.Add(site);
     }
     else
     {
         decomposition.First().RelatedObjects.Add(site);
     }
 }
 internal XbimSiteCommonProperties(IfcSite site) : base(site, "Pset_SiteCommon") { }
Exemple #6
0
 //internal constructor for creation from XbimDocument (parsing data into the document)
 internal XbimSite(XbimDocument document, IfcSite site) : base(document, site) { }