找回密码 注册 QQ登录
开思网工业级高精度在线3D打印服务

iCAx开思网

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

[求助] 请教putlistitem函数,谢谢了

[复制链接]
跳转到指定楼层
1
发表于 2009-3-30 17:41:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
theSession = Session.GetSession();
            theUFSession = UFSession.GetUFSession();
            PartLoadStatus pls;
            Part pt = theSession.Parts.Open("c:\\xx.prt", out pls);
            Tag pt_tag = theUFSession.Part.AskDisplayPart();
            Tag next_tag = Tag.Null;
            Tag[] list = null;
            theUFSession.Modl.CreateList(out list);

            do
            {
                theUFSession.Obj.CycleObjsInPart(pt.Tag, UFConstants.UF_solid_type, ref next_tag);
                if (next_tag == Tag.Null) break;
                int t, subType;
                theUFSession.Obj.AskTypeAndSubtype(next_tag, out t, out subType);
                if (subType == 0/*UF_solid_body_subtype*/)
                    theUFSession.Modl.PutListItem(list, next_tag);
            } while (true);
为什么单步调试都进了putlistitem函数里面了list数组还是零唯呢??实在是没办法了,各位大侠帮忙阿。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 赞一下!赞一下!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

GMT+8, 2024-9-21 13:52 , Processed in 0.019743 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2024 www.iCAx.org

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