Ejemplo n.º 1
0
        /// <summary>
        /// Factories the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <param name="properties">The properties.</param>
        /// <returns>AngleSection.</returns>
        internal static SlabWaffle Factory(ApiCSiApplication app, string uniqueName, SlabWaffleProperties properties = null)
        {
            SlabWaffle areaSection = new SlabWaffle(app, uniqueName)
            {
                _properties = properties
            };

            if (properties == null)
            {
                areaSection.FillData();
            }

            return(areaSection);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Sets the extended.
        /// </summary>
        /// <param name="extendedProperties">The extended properties.</param>
        public void SetExtended(SlabExtendedProperties extendedProperties)
        {
            switch (extendedProperties)
            {
            case SlabRibbedProperties slabRibbedProperties:
                _extended        = SlabRibbed.Factory(_apiApp, Name, slabRibbedProperties);
                _layerProperties = null;
                break;

            case SlabWaffleProperties slabWaffleProperties:
                _extended        = SlabWaffle.Factory(_apiApp, Name, slabWaffleProperties);
                _layerProperties = null;
                break;

            default:
                _extended = null;
                break;
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Fills the extended.
        /// </summary>
        public void FillExtended()
        {
            if (SectionProperties.ShellType == eShellType.ShellLayered)
            {
                _extended = null;
                return;
            }

            switch (SectionProperties.FloorType)
            {
            case eSlabType.Ribbed:
                _extended = SlabRibbed.Factory(_apiApp, Name);
                break;

            case eSlabType.Waffle:
                _extended = SlabWaffle.Factory(_apiApp, Name);
                break;

            case eSlabType.Slab:
            case eSlabType.Drop:
                _extended = null;
                break;
            }
        }