用vb 对proe二次开发的问题,张继春书里的例子,帮我看看那有问题。 30
代码如下:Publicgateway2AsNewGWayAXDimfeatnameAsStringPrivateSubCommand2_Click()DimrgAsLon...
代码如下:
Public gateway2 As New GWayAX
Dim featname As String
Private Sub Command2_Click()
Dim rg As Long
Dim itemName As String
Dim itemId As Long
rg = gateway2.SelectItem(SelFeature, itemId, itemName)
featname = gateway2.FeatureGetName(itemId)
End Sub
Private Sub Command3_Click()
Dim dimlist As Variant
Dim numdimensions As Long
Dim rg1 As Long
Dim dimNum As Integer
rg1 = gateway2.FeatureGetDimensionList(dimlist, numdimensions, featname)
For dimNum = 0 To numdimensions - 1
List1.AddItem dimlist(dimNum)
Next dimNum
End Sub
Private Sub Command4_Click()
Dim value As Long
Dim rg2 As Long
msg$ = "请输入新值:"
value = Val(InputBox$(msg$, "数值修改"))
rg2 = gateway2.DimensionSetValue(List1.Text, value)
End Sub
Private Sub Command5_Click()
gateway2.ModelRegenerate
gateway2.WindowRepaint
End Sub
Private Sub List1_Click()
gateway2.WindowRepaint
gateway2.DimensionHighlight (List1.Text)
End Sub
谁能告诉我那有问题,我运行到显示尺寸特征那就跑不动了,特征在list1 里显示不了。 展开
Public gateway2 As New GWayAX
Dim featname As String
Private Sub Command2_Click()
Dim rg As Long
Dim itemName As String
Dim itemId As Long
rg = gateway2.SelectItem(SelFeature, itemId, itemName)
featname = gateway2.FeatureGetName(itemId)
End Sub
Private Sub Command3_Click()
Dim dimlist As Variant
Dim numdimensions As Long
Dim rg1 As Long
Dim dimNum As Integer
rg1 = gateway2.FeatureGetDimensionList(dimlist, numdimensions, featname)
For dimNum = 0 To numdimensions - 1
List1.AddItem dimlist(dimNum)
Next dimNum
End Sub
Private Sub Command4_Click()
Dim value As Long
Dim rg2 As Long
msg$ = "请输入新值:"
value = Val(InputBox$(msg$, "数值修改"))
rg2 = gateway2.DimensionSetValue(List1.Text, value)
End Sub
Private Sub Command5_Click()
gateway2.ModelRegenerate
gateway2.WindowRepaint
End Sub
Private Sub List1_Click()
gateway2.WindowRepaint
gateway2.DimensionHighlight (List1.Text)
End Sub
谁能告诉我那有问题,我运行到显示尺寸特征那就跑不动了,特征在list1 里显示不了。 展开
1个回答
展开全部
我没有用过proe的,你能把代码中GWayAX 类模块也发上来吗?
以便解决问题。
chixun99@163.com
以便解决问题。
chixun99@163.com
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
光点科技
2023-08-15 广告
2023-08-15 广告
通常情况下,我们会按照结构模型把系统产生的数据分为三种类型:结构化数据、半结构化数据和非结构化数据。结构化数据,即行数据,是存储在数据库里,可以用二维表结构来逻辑表达实现的数据。最常见的就是数字数据和文本数据,它们可以某种标准格式存在于文件...
点击进入详情页
本回答由光点科技提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询