|
马上注册,结交更多同行朋友,交流,分享,学习。
您需要 登录 才可以下载或查看,没有帐号?注册
x
我是刚开始学习使用SE二次开发的超级菜鸟,下面这个程序怎么启动SE啊,求各位帮帮忙忙,很急,谢谢!
Private Sub Command1_Click()
Dim objApp As SolidEdgeFramework.Application
Dim objDoc As SolidEdgePart.PartDocument
On Error Resume Next
Set objApp = GetObject("SolidEdge,Application")
If Err Then
Err.Clear
Set objApp = CreateObject("SolidEdge,Application")
Set objDoc = objApp.Documents.Add(SolidEdge.PartDocument)
objApp.Visible = True
Else
Set objDoc = objApp.ActiveDocument
End If
Call objApp.Active
Set objApp = Nothing
Set objDoc = Nothing |
|