예제 #1
0
def close(gdoc):
    SWCADGui.runCommand("Std_CloseActiveWindow")
    gdoc2 = SWCAD.ActiveDocument()
    if gdoc == gdoc2:
        SWCAD.closeDocument(gdoc.Name)
예제 #2
0
파일: openplm.py 프로젝트: amarh/openPLM
def close(gdoc):
    SWCADGui.runCommand("Std_CloseActiveWindow")
    gdoc2 = SWCAD.ActiveDocument()
    if gdoc == gdoc2:
        SWCAD.closeDocument(gdoc.Name)
예제 #3
0
def save(gdoc):
    SWCADGui.runCommand("Std_Save")
    print(gdoc)
    gdoc.Label = os.path.splitext(os.path.basename(
        gdoc.FileName))[0] or gdoc.Label
예제 #4
0
파일: openplm.py 프로젝트: amarh/openPLM
def save(gdoc):
    SWCADGui.runCommand("Std_Save")
    print(gdoc)
    gdoc.Label = os.path.splitext(os.path.basename(gdoc.FileName))[0] or gdoc.Label