pytabs.view
1# pyTABS - ETABS .NET API python wrapper 2# View - cView 3__all__ = ['View'] 4 5# import ETABS namespace and pyTABS error handler 6from pytabs.etabs_config import * 7from pytabs.error_handle import * 8 9 10class View: 11 """View interface""" 12 def __init__(self, sap_model : etabs.cSapModel) -> None: 13 # link of SapModel interface 14 self.sap_model = sap_model 15 # create View interface 16 self.view = etabs.cView(sap_model.View) 17 18 19 def refresh_view(self, window : int = 0, zoom : bool = True) -> None: 20 """Refreshes the view for the specified window(s). 21 22 :param window: window number, with 0 for all windows, defaults to 0 23 :type window: int, optional 24 :param zoom: `True` to maintain window current zoom level, `False` to reset window zoom level to default, defaults to True 25 :type zoom: bool, optional 26 """ 27 handle(self.view.RefreshView(window, zoom)) 28 29 30 # RefreshWindow method redundant with the above.
class
View:
11class View: 12 """View interface""" 13 def __init__(self, sap_model : etabs.cSapModel) -> None: 14 # link of SapModel interface 15 self.sap_model = sap_model 16 # create View interface 17 self.view = etabs.cView(sap_model.View) 18 19 20 def refresh_view(self, window : int = 0, zoom : bool = True) -> None: 21 """Refreshes the view for the specified window(s). 22 23 :param window: window number, with 0 for all windows, defaults to 0 24 :type window: int, optional 25 :param zoom: `True` to maintain window current zoom level, `False` to reset window zoom level to default, defaults to True 26 :type zoom: bool, optional 27 """ 28 handle(self.view.RefreshView(window, zoom)) 29 30 31 # RefreshWindow method redundant with the above.
View interface
def
refresh_view(self, window: int = 0, zoom: bool = True) -> None:
20 def refresh_view(self, window : int = 0, zoom : bool = True) -> None: 21 """Refreshes the view for the specified window(s). 22 23 :param window: window number, with 0 for all windows, defaults to 0 24 :type window: int, optional 25 :param zoom: `True` to maintain window current zoom level, `False` to reset window zoom level to default, defaults to True 26 :type zoom: bool, optional 27 """ 28 handle(self.view.RefreshView(window, zoom))
Refreshes the view for the specified window(s).
Parameters
- window: window number, with 0 for all windows, defaults to 0
- zoom:
True
to maintain window current zoom level,False
to reset window zoom level to default, defaults to True