Example #1
0
        protected override IfcZone Mapping(Zone zone, IfcZone ifcZone)
        {
            ifcZone.Name        = zone.Name;
            ifcZone.Description = zone.Description;

            #region Properties



            #endregion

            #region Categories

            if (zone.Categories != null)
            {
                foreach (var category in zone.Categories)
                {
                    Exchanger.ConvertCategoryToClassification(category, ifcZone);
                }
            }

            #endregion

            #region Attributes

            if (zone.Attributes != null)
            {
                foreach (var attribute in zone.Attributes)
                {
                    Exchanger.ConvertAttributeTypeToIfcObjectProperty(ifcZone, attribute);
                }
            }
            #endregion

            #region Spaces

            if (zone.Spaces != null)
            {
                foreach (var spaceKey in zone.Spaces)
                {
                    Exchanger.AddSpaceToZone(spaceKey, ifcZone);
                }
            }

            #endregion

            #region Documents
            if (zone.Documents != null && zone.Documents.Any())
            {
                Exchanger.ConvertDocumentsToDocumentSelect(ifcZone, zone.Documents);
            }
            #endregion

            return(ifcZone);
        }