点击查看详细介绍

SNAP做了根顶针,求和有问题,哪位大侠解一下

llcxfq VIP会员 10年前 1798 2

购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008  QQ号:85585969  


Imports Snap, Snap.Create

Public Class MyProgram

Public Shared Sub Main()

Dim ap1 As New Position(0, 0, -100) '轴点1

Dim av1 As Vector=Vector.AxisZ '轴向1

Dim h1, h2 As Number '高度1.2

Dim d1, d2 As Number '直径1.2

Dim cy1, cy2 As NX.Cylinder '圆柱1.2

h1=8

h2=200

d2=8

d1=13

cy1=Cylinder(ap1, av1, h1, d1) '圆柱1

cy1=Cylinder(ap1, av1, h2, d2) '圆柱2

Dim BB1 As NX.Boolean = Unite(cy1, cy2)

BB1.Color = System.Drawing.Color.Green

BB1.Layer = 70

End Sub

End Class

0

最新回复 (2)
  • llcxfq VIP会员 10年前
    1

  • llcxfq VIP会员 10年前
    2

    写成2个cy1了,没发现,现在好了一个改成cy2

请登录后发表新帖