コード例 #1
0
def run():
    model = CommonSample.SelectModel('plane panel', 'select part')
    group = kcs_hullpan.group_get(model.Name, model.PartId)
    stmt = kcs_hullpan.stmt_get(model.Name, group)
    
    kcs_ui.message_confirm(stmt)
    panel2 = CommonSample.SelectModel('plane panel', 'select part')
    kcs_hullpan.pan_activate([panel2.Name])
    kcs_hullpan.stmt_exec_single(0, stmt, panel2.Name)
    kcs_hullpan.pan_store([panel2.Name])
    kcs_hullpan.pan_skip([panel2.Name])
コード例 #2
0
def SpliteFlange():
    flange = GetFlange()
    group = kcs_hullpan.group_get(flange.Name, flange.PartId)
    stmt = kcs_hullpan.stmt_get(flange.Name, group)
    pos = GetPosition()
    newStmt = GetNewStmt(stmt, pos[0], pos[1])
    kcs_ui.message_confirm(stmt + '\n' + newStmt[0] + '\n' + newStmt[1])
    kcs_hullpan.stmt_exec(0, newStmt[0])
    kcs_hullpan.stmt_exec(0, newStmt[1])
    stmt2 = 'DEL, ' + stmt
    kcs_hullpan.stmt_exec(group, stmt2)
コード例 #3
0
def run():
    model = CommonSample.SelectModel('plane panel', 'select part')
    group = kcs_hullpan.group_get(model.Name, model.PartId)
    stmt = kcs_hullpan.stmt_get(model.Name, group)

    kcs_ui.message_confirm(stmt)
    panel2 = CommonSample.SelectModel('plane panel', 'select part')
    kcs_hullpan.pan_activate([panel2.Name])
    kcs_hullpan.stmt_exec_single(0, stmt, panel2.Name)
    kcs_hullpan.pan_store([panel2.Name])
    kcs_hullpan.pan_skip([panel2.Name])