Exemplo n.º 1
0
        // === Get ===
        /// <summary>
        /// Retrieves summary results for frame design.
        /// </summary>
        /// <param name="name">The name of an existing frame object or group, depending on the value of the ItemType item.</param>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        public static List <SteelResultsSummary> GetSummaryResults(string name, eItemType itemType = eItemType.Object)
        {
            _designer.DesignSteel.GetSummaryResults(name,
                                                    out var frameNames,
                                                    out var ratios,
                                                    out var ratioTypes,
                                                    out var locations,
                                                    out var comboNames,
                                                    out var errorSummaries,
                                                    out var warningSummaries);

            List <SteelResultsSummary> results = new List <SteelResultsSummary>();

            for (int i = 0; i < frameNames.Length; i++)
            {
                SteelResultsSummary result = new SteelResultsSummary()
                {
                    FrameName      = frameNames[i],
                    Ratio          = ratios[i],
                    RatioType      = ratioTypes[i],
                    Location       = locations[i],
                    ComboName      = comboNames[i],
                    ErrorSummary   = errorSummaries[i],
                    WarningSummary = warningSummaries[i]
                };
                results.Add(result);
            }

            return(results);
        }
Exemplo n.º 2
0
        /// <summary>
        /// True: Design results are available.
        /// </summary>
        /// <returns><c>true</c> if design results are available, <c>false</c> otherwise.</returns>
        public override void FillResultsAreAvailable()
        {
            resultsAreAvailable(_designer.DesignSteel);
            if (ResultsAreAvailable)
            {
                return;
            }

            SteelResultsSummary.Clear();
#if !BUILD_ETABS2015 && !BUILD_ETABS2016 && !BUILD_ETABS2017
            SteelResultsDetailedText.Clear();
            SteelResultsDetailedNumeric.Clear();
#else
            SteelResultsSummaryExpanded.Clear();
#endif
        }