本文整理汇总了Python中application.Application.saveAs方法的典型用法代码示例。如果您正苦于以下问题:Python Application.saveAs方法的具体用法?Python Application.saveAs怎么用?Python Application.saveAs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类application.Application
的用法示例。
在下文中一共展示了Application.saveAs方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: find_intersections
# 需要导入模块: from application import Application [as 别名]
# 或者: from application.Application import saveAs [as 别名]
p1=Point(0, 0)
arg={"ELLIPSE_0":p1, "ELLIPSE_1":300, "ELLIPSE_2":100}
eli=Ellipse(arg)
p2=Point(0, 0)
p3=Point(-1,0)
arg={"CLINE_0":p2, "CLINE_1":p3}
seg1=CLine(arg)
print find_intersections(eli, seg1)
print "-- segment_ellipse --"
def TestIntersection():
segment_segmet()
segment_cline()
segment_circle()
segment_ellipse()
from application import Application
a=Application()
print("stored file")
for f in a.getRecentFiles:
print "File :", str(f)
print("available command")
for c in a.getCommandList():
print "Command:", str(c)
doc=a.openDocument(a.getRecentFiles[0])
a.saveAs(r"C:\Users\mboscolo\AppData\Local\Temp\test.dxf")
示例2: print
# 需要导入模块: from application import Application [as 别名]
# 或者: from application.Application import saveAs [as 别名]
p1=Point(0, 0)
arg={"ELLIPSE_0":p1, "ELLIPSE_1":300, "ELLIPSE_2":100}
eli=Ellipse(arg)
p2=Point(0, 0)
p3=Point(-1,0)
arg={"CLINE_0":p2, "CLINE_1":p3}
seg1=CLine(arg)
print(find_intersections(eli, seg1))
print("-- segment_ellipse --")
def TestIntersection():
segment_segmet()
segment_cline()
segment_circle()
segment_ellipse()
from application import Application
a=Application()
print("stored file")
for f in a.getRecentFiles:
print("File :", str(f))
print("available command")
for c in a.getCommandList():
print("Command:", str(c))
TestSympy()
TestIntersection()
doc=a.openDocument(a.getRecentFiles[0])
a.saveAs(r"C:\tmp\test.dxf")