Example #1
0
        /// <summary>
        /// Fills the data.
        /// </summary>
        public override void FillData()
        {
            AnalysisResults       = new FrameResults(Name);
            SteelDesignResults    = new SteelDesignResults(Name);
            ConcreteDesignResults = new ConcreteDesignResults(Name);
#if !BUILD_ETABS2015 && !BUILD_ETABS2016 && !BUILD_ETABS2017
            AluminumDesignResults        = new AluminumDesignResults(Name);
            SteelColdFormedDesignResults = new SteelColdFormedDesignResults(Name);
#else
            CompositeBeamDesignResults = new CompositeBeamDesignResults(Name);
#endif
        }
Example #2
0
        public bool FillDesignResults()
        {
            Material currentMaterialUsed = materialUsed();

            switch (currentMaterialUsed)
            {
            case Steel _:
                if (SteelDesignResults.ResultsAreAvailable)
                {
                    SteelDesignResults.FillDesignResults();
#if BUILD_ETABS2015 || BUILD_ETABS2016 || BUILD_ETABS2017
                    CompositeBeamDesignResults.FillDesignResults();
#endif
                    return(true);
                }
                break;

            case Concrete _:
                if (ConcreteDesignResults.ResultsAreAvailable)
                {
                    ConcreteDesignResults.FillDesignResults();
                    return(true);
                }
                break;

#if !BUILD_ETABS2015 && !BUILD_ETABS2016 && !BUILD_ETABS2017
            case Aluminum _:
                if (AluminumDesignResults.ResultsAreAvailable)
                {
                    AluminumDesignResults.FillDesignResults();
                    return(true);
                }
                break;

            case ColdFormed _:
                if (SteelColdFormedDesignResults.ResultsAreAvailable)
                {
                    SteelColdFormedDesignResults.FillDesignResults();
                    return(true);
                }
                break;
#endif
            }
            return(false);
        }