找回密码 注册 QQ登录
一站式解决方案

iCAx开思网

CAD/CAM/CAE/设计/模具 高清视频【积分说明】如何快速获得积分?在线3D打印服务,一键上传,自动报价 
查看: 16425|回复: 4
打印 上一主题 下一主题

[求助] VB.NET 给层命名问题-附源代码

[复制链接]
跳转到指定楼层
1
发表于 2010-3-21 14:16:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
大家好用NET给层随便命个名字,可是一直报错:如图,可找不出原因,那个高手请出手帮忙。我感觉函数引用没错呀
下面是代码
Imports NXOpen
Imports NXOpen.UF
Imports System.Text
Module Module1
    '  Explicit Activation
    '      This entry point is used to activate the application explicitly
    Sub Main()

        Dim f As New Form1
        f.ShowDialog()
        ' TODO: Add your application code here
    End Sub
    Sub SXM()
        
        Dim theSession As Session = Session.GetSession()
        Dim workPart As Part = theSession.Parts.Work
        Dim displayPart As Part = theSession.Parts.Display
        'Dim theUI As UI = NXOpen.UI.GetUI()
         Dim theUfSession As UFSession = UFSession.GetUFSession()

        Dim SS As String
        Dim categoy As Tag
        Dim i As Integer
        
        Dim cat As UFLayer.CategoryInfo
        With cat
            .name = ss
            .descr = ss
            For i = 1 To 255
                .layer_mask(i) = False
            Next
                 End With

        theUfSession.Layer.CreateCategory(cat, categoy)
    End Sub

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 赞一下!赞一下!
2
发表于 2010-3-21 19:12:08 | 只看该作者

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

x
3
发表于 2010-3-23 07:17:59 | 只看该作者

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

x
4
发表于 2010-3-23 19:22:38 | 只看该作者

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

x
5
发表于 2010-4-17 19:16:48 | 只看该作者

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

x
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3D打印手板模型快速制作服务,在线报价下单!

QQ 咨询|手机版|联系我们|iCAx开思网  

GMT+8, 2024-9-20 22:49 , Processed in 0.026267 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2024 www.iCAx.org

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