Ejemplo n.º 1
0
     pass
 elif kcs_util.app_curved_hull():
     pass
 elif kcs_util.app_diagram():
     pass
 elif kcs_util.app_drafting():
     pass
 elif kcs_util.app_planar_hull():
     from iknot.apps import ktHull
     _ktMenu.append(ktHull.menu)
 elif kcs_util.app_nesting():
     pass
 elif kcs_util.app_pipe():
     pass
 elif kcs_util.app_structure():
     pass
 elif kcs_util.app_ventilation():
     pass
 else:
     print 'can not identify the current application.'
 _ktMenu.append(ktDwgForm.menu)
 _ktMenu.append(ktText.menu)
 _ktMenu.append(ktMeasure.menu)
 _ktMenu.append(ktNote.menu)
 _ktMenu.append(ktTable.menu)
 _ktMenu.append(ktDevTools.menu)
 _ktMenu.append(ktWebsite.menu)
 _ktMenu.append(('',-1))
 _ktMenu.append(('About','iknot.about'))
 
 ktGui.AddMenu('iKnot', _ktMenu)
Ejemplo n.º 2
0
if kcs_util.app_basic_design() or kcs_util.app_planar_hull():
    import kcs_hullpan
    import kcs_chm
    import kcs_struct
elif kcs_util.app_cable():
    import kcs_hullpan
    import kcs_struct
    import kcs_cable
elif kcs_util.app_curved_hull():
    import kcs_chm
elif kcs_util.app_drafting():
    pass
#     import kcs_cway
elif kcs_util.app_nesting():
    pass
elif kcs_util.app_pipe() or kcs_util.app_ventilation():
    import kcs_hullpan
    import kcs_struct
    import kcs_pipe
    import kcs_spec
elif kcs_util.app_structure():
    import kcs_hullpan
    import kcs_struct

modList = [sys.modules.get(i) for i in sys.modules if i.startswith("kcs")]


def run():
    """
Do not place the fake vitesse file at python path.
Place it at 'external libraries' of eclipse is recommended
Ejemplo n.º 3
0
        pass
    elif kcs_util.app_curved_hull():
        pass
    elif kcs_util.app_diagram():
        pass
    elif kcs_util.app_drafting():
        pass
    elif kcs_util.app_planar_hull():
        from iknot.apps import ktHull
        _ktMenu.append(ktHull.menu)
    elif kcs_util.app_nesting():
        pass
    elif kcs_util.app_pipe():
        pass
    elif kcs_util.app_structure():
        pass
    elif kcs_util.app_ventilation():
        pass
    else:
        print 'can not identify the current application.'
    _ktMenu.append(ktDwgForm.menu)
    _ktMenu.append(ktText.menu)
    _ktMenu.append(ktMeasure.menu)
    _ktMenu.append(ktNote.menu)
    _ktMenu.append(ktTable.menu)
    _ktMenu.append(ktDevTools.menu)
    _ktMenu.append(ktWebsite.menu)
    _ktMenu.append(('', -1))
    _ktMenu.append(('About', 'iknot.about'))

    ktGui.AddMenu('iKnot', _ktMenu)
Ejemplo n.º 4
0
if kcs_util.app_basic_design() or kcs_util.app_planar_hull():
    import kcs_hullpan
    import kcs_chm
    import kcs_struct
elif kcs_util.app_cable():
    import kcs_hullpan
    import kcs_struct
    import kcs_cable
elif kcs_util.app_curved_hull():
    import kcs_chm
elif kcs_util.app_drafting():
    pass
#     import kcs_cway
elif kcs_util.app_nesting():
    pass
elif kcs_util.app_pipe() or kcs_util.app_ventilation():
    import kcs_hullpan
    import kcs_struct
    import kcs_pipe
    import kcs_spec
elif kcs_util.app_structure():
    import kcs_hullpan
    import kcs_struct

modList = [sys.modules.get(i) for i in sys.modules if i.startswith("kcs")]


def run():
    """
Do not place the fake vitesse file at python path.
Place it at 'external libraries' of eclipse is recommended