Пример #1
0
 public static void GetJointAnalysisResults(IEnumerable <SAPLoadCombination> combos, ref List <SAPFrameElement> frameElements, bool isEnvelope = false)
 {
     if (isEnvelope == false)
     {
         for (int i = 0; i < frameElements.Count; i++)
         {
             frameElements[i].StartPoint.AnalysisResults = SAP2000API.GetJointAnalysisResults(combos, frameElements[i].StartPoint);
             frameElements[i].StartPoint.AnalysisResults = SAP2000API.GetJointAnalysisResults(combos, frameElements[i].StartPoint);
         }
     }
     else
     {
         for (int i = 0; i < frameElements.Count; i++)
         {
             frameElements[i].StartPoint.AnalysisResultsEnvelope = SAP2000API.GetJointAnalysisResults(combos, frameElements[i].StartPoint);
             frameElements[i].StartPoint.AnalysisResultsEnvelope = SAP2000API.GetJointAnalysisResults(combos, frameElements[i].StartPoint);
         }
     }
 }
Пример #2
0
        public static SAPLoadCombination[] AddDesignDefaultCombos(eMatType matType)
        {
            SAPLoadCombination[] combos;
            int flag = 1;

            switch (matType)
            {
            case eMatType.Steel:
                flag = mySapModel.RespCombo.AddDesignDefaultCombos(true, false, false, false);
                break;

            case eMatType.Concrete:
                flag = mySapModel.RespCombo.AddDesignDefaultCombos(false, true, false, false);
                break;

            case eMatType.NoDesign:
                return(null);

            case eMatType.Aluminum:
                flag = mySapModel.RespCombo.AddDesignDefaultCombos(false, false, true, false);
                break;

            case eMatType.ColdFormed:
                flag = mySapModel.RespCombo.AddDesignDefaultCombos(true, false, false, true);
                break;

            case eMatType.Rebar:
                return(null);

            case eMatType.Tendon:
                return(null);

            case eMatType.Masonry:
                return(null);
            }
            if (flag != 0)
            {
                return(null);
            }
            combos = SAP2000API.GetLoadCombinationsList();
            return(combos);
        }