几何尺寸与公差论坛

 找回密码
 注册
查看: 3976|回复: 0

VB代码:迭代测量命令 via PCDIMS automation

[复制链接]
发表于 2007-7-19 11:26:18 | 显示全部楼层 |阅读模式
Private Sub Command1_Click()
    Dim app As New PCDLRN.Application
   
    Dim partprogram As PCDLRN.partprogram
    Dim cmd As Command
   
    Set partprogram = app.ActivePartProgram
    For I = 1 To partprogram.Commands.Count
        Set cmd = partprogram.Commands.Item(I)
        'cmd.Type = MEASURED_PLANE
        List1.AddItem "ID=" & cmd.ID & "; type=" & cmd.Type
    Next I
   
End Sub
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2025-1-3 10:31 , Processed in 0.034682 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表