コード例 #1
0
ファイル: SiteType.cs プロジェクト: McLeanBH/XbimExchange
 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;
 }
コード例 #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);
            }
        }
コード例 #3
0
 internal XbimSiteQuantities(IfcSite site) : base(site, "SiteQuantities") { }
コード例 #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);
     }
 }
コード例 #5
0
 internal XbimSiteCommonProperties(IfcSite site) : base(site, "Pset_SiteCommon") { }
コード例 #6
0
ファイル: XbimSite.cs プロジェクト: bnaand/xBim-Toolkit
 //internal constructor for creation from XbimDocument (parsing data into the document)
 internal XbimSite(XbimDocument document, IfcSite site) : base(document, site) { }