Exemplo n.º 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;
 }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 internal XbimSiteQuantities(IfcSite site) : base(site, "SiteQuantities") { }
Exemplo n.º 4
0
 /// <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") { }
Exemplo n.º 6
0
 //internal constructor for creation from XbimDocument (parsing data into the document)
 internal XbimSite(XbimDocument document, IfcSite site) : base(document, site) { }