标题: 【原创】 [原创]一个实例(VB) [打印本页] 作者: 玲玲零零 时间: 2003-1-5 14:42 标题: 【原创】 [原创]一个实例(VB) 分分分分分分
Private Sub Text1_keyPress(keyp As Integer)
Dim a As String
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long
Dim Annotation As Object
Dim Gtol As Object
Dim DatumTag As Object
Dim FeatureData As Object
Dim Feature As Object
Dim Component As Object
If keyp = 13 Then
a = Text1.Text
End If
Set swApp = CreateObject("SldWorks.Application")
Set Part = swApp.Newpart()
Set Part = swApp.ActiveDoc