会员登陆 | 会员注册 | 帮助中心 | 忘记密码? | 会员中心
搜索类型: 下载    文章    图片    影视    商城    商城   
       
VB开发SE中的保存和关闭当前文档的示例
2008-01-29 05:22:03  作者:  来源:互联网  浏览次数:290  文字大小:【】【】【
'User: declare all variables here.

'Attempt to connect to a running instance of SE
On Error Resume Next 'Turn on error handling
Set objSE = GetObject(, "SolidEdge.Application")
If Err Then 'Solid edge is not running
MsgBox "Solid Edge is not running, start Solid Edge first"
End 'end the program
End If
On Error GoTo 0 ''Turn off error handling
On Error GoTo errhandler

objSE.Visible = True 'Make the application window visible

Set objSEDocs = objSE.Documents 'get thet documents collection

'Determine if any documents are open
If objSEDocs.Count = 0 Then
MsgBox "Make sure a document is open and start the program again."
End
End If

'connect to the active document
Set objSEDoc = objSE.ActiveDocument
'save the active document. If no name has been provided, SE will show
'a saveas box
objSEDoc.save
'close the document
objSEDoc.close

'User: set objects to nothing

'User: end program

· SolidWorks Explore应用实例
· VB开发SE中的保存和关闭当前文档的...
· 在工程图中如何将尺寸值用文本说明
· 数控刀具技术现状及发展
· 基于SolidEdge Insight的PDM系统(1)
· 基于SolidEdge Insight的PDM系统(3)
· 基于SolidEdge Insight的PDM系统(2)
· 液压支架三维建模与运动仿真
· 怎么将solidedge文件调入ansys
· Solid Edge 17叫板SolidWorks
· SolidWorks Explore应用实例
· VB开发SE中的保存和关闭当前文档的...
· 在工程图中如何将尺寸值用文本说明
· 数控刀具技术现状及发展
· 基于SolidEdge Insight的PDM系统(1)
· 基于SolidEdge Insight的PDM系统(3)
· 基于SolidEdge Insight的PDM系统(2)
· 液压支架三维建模与运动仿真
· 怎么将solidedge文件调入ansys
· Solid Edge 17叫板SolidWorks
关于我们 | 联系我们 | 开发团队 | 免责申明 | 站点地图 | 下载帮助
CAX频道 旗舰CAD/CAM/CAE/CAX下载专业网站   FMcaX版权所有 ©2007-2008
在线咨询:   QQ:76771131     QQ:956477  
     粤ICP备07502650号    FMcaX.com