我是刚开始学习使用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