|
马上注册,结交更多同行朋友,交流,分享,学习。
您需要 登录 才可以下载或查看,没有帐号?注册
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数组还是零唯呢??实在是没办法了,各位大侠帮忙阿。 |
|