コード例 #1
0
                                       column=FuncPQ.Q,
                                       row_id=row_id,
                                       value=Q)


if __name__ == '__main__':
    from RastrWinLib.AstraRastr import RASTR
    from RastrWinLib.Load import load_file
    from RastrWinLib.Save import save_file
    from RastrWinLib.Tables.Dynamic.FuncPQ import FuncPQ

    load_file(rastr_win=RASTR,
              path_file=r'C:\Users\Ohrimenko_AG\Desktop\test_filling\test.rst',
              shabl=Shabl.shablon_file_dynamic)

    table_ = RASTR.Tables(FuncPQ.table)

    for i in range(0, 100):
        table_.AddRow()
        filling_FuncPQ(rastr_win=RASTR,
                       row_id=i,
                       Id=123123123,
                       P=12,
                       Q=14,
                       switch_command_line=False)

    save_file(
        rastr_win=RASTR,
        path_file=r'C:\Users\Ohrimenko_AG\Desktop\test_filling\test_FuncPQ.rst',
        shabl=Shabl.shablon_file_dynamic)
コード例 #2
0
            TL12=0.123456,
            TI1=0.123456,
            TI2=0.123456,
            TI3=0.123456,
            TI4=0.123456,
            TI5=0.123456,
            TI6=0.123456,
            TI7=0.123456,
            TI8=0.123456,
            TI9=0.123456,
            TI10=0.123456,
            TI11=0.123456,
            TI12=0.123456,
            TH1=0.123456,
            TH2=0.123456,
            TH3=0.123456,
            TH4=0.123456,
            TH5=0.123456,
            TH6=0.123456,
            TH7=0.123456,
            TH8=0.123456,
            TH9=0.123456,
            TH10=0.123456,
            TH11=0.123456,
            TH12=0.123456,
            switch_command_line=False)

    save_file(rastr_win=RASTR,
              path_file=r'C:\Users\Ohrimenko_AG\Desktop\test_filling\test_DFWIEEE421PSS4B.rst',
              shabl='динамика')
コード例 #3
0
    for i in range(0, 100):
        table_.AddRow()

        filling_Governor(rastr_win=RASTR,
                         row_id=i,
                         sel=None,
                         sta=None,
                         Id=123456789,
                         Name=f'Генератор {i}',
                         ModelType=None,
                         CustomModel=None,
                         Brand=None,
                         strs=0.123,
                         zn=0.123,
                         Tr=0.123,
                         otmax=0.123,
                         otmin=0.123,
                         CVmin=0.123,
                         CVmax=0.123,
                         T1=0.123,
                         K1=0.123,
                         K2=0.123,
                         BoilerId=123456789,
                         switch_command_line=False)

    save_file(rastr_win=RASTR,
              path_file=
              r'C:\Users\Ohrimenko_AG\Desktop\test_filling\test_Governor.rst',
              shabl='динамика')