pytabs.resp_combo

 1# pyTABS - ETABS .NET API python wrapper
 2# RespCombo - cCombo interface 
 3__all__ = ['RespCombo']
 4
 5# import ETABS namespace and pyTABS error handler
 6from pytabs.etabs_config import *
 7from pytabs.error_handle import *
 8
 9
10class RespCombo:
11    """Combo interface"""
12    def __init__(self, sap_model : etabs.cSapModel) -> None:
13        # link of SapModel interface
14        self.sap_model = sap_model
15        # create RespCombo interface
16        self.resp_combo = etabs.cCombo(sap_model.RespCombo)
17
18
19    def get_name_list(self) -> list[str]:
20        """Retrieves the names of all defined response combinations.
21
22        :return: list of combination names
23        :rtype: list[str]
24        """
25        number_names = int()
26        combo_names = [str()]
27        [ret, number_names, combo_names] = self.resp_combo.GetNameList(number_names, combo_names)
28        handle(ret)
29        return list(combo_names)
class RespCombo:
11class RespCombo:
12    """Combo interface"""
13    def __init__(self, sap_model : etabs.cSapModel) -> None:
14        # link of SapModel interface
15        self.sap_model = sap_model
16        # create RespCombo interface
17        self.resp_combo = etabs.cCombo(sap_model.RespCombo)
18
19
20    def get_name_list(self) -> list[str]:
21        """Retrieves the names of all defined response combinations.
22
23        :return: list of combination names
24        :rtype: list[str]
25        """
26        number_names = int()
27        combo_names = [str()]
28        [ret, number_names, combo_names] = self.resp_combo.GetNameList(number_names, combo_names)
29        handle(ret)
30        return list(combo_names)

Combo interface

RespCombo(sap_model: ETABSv1.cSapModel)
13    def __init__(self, sap_model : etabs.cSapModel) -> None:
14        # link of SapModel interface
15        self.sap_model = sap_model
16        # create RespCombo interface
17        self.resp_combo = etabs.cCombo(sap_model.RespCombo)
def get_name_list(self) -> list[str]:
20    def get_name_list(self) -> list[str]:
21        """Retrieves the names of all defined response combinations.
22
23        :return: list of combination names
24        :rtype: list[str]
25        """
26        number_names = int()
27        combo_names = [str()]
28        [ret, number_names, combo_names] = self.resp_combo.GetNameList(number_names, combo_names)
29        handle(ret)
30        return list(combo_names)

Retrieves the names of all defined response combinations.

Returns

list of combination names