马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
在CAA中Mechanical Modeler-》Navigating a Part Document这个例子里不管是用CATIDescendants还是CATIPartRequest这个接口,再用CATIBodyRequest 这个接口取特征集合。
结果如下:
Using CATIDescendants
The list of Body Features: , has 3 element(s)
Body.3 E_FAIL for GetResult
PartBody
Count of elements in the result list=5
Solid.1, its topological result is with the following tag : 474
Sketch.1, its topological result is with the following tag : 263
Point.5, its topological result is with the following tag : 10351
Sketch.3, its topological result is with the following tag : 10507
Solid.1, its topological result is with the following tag : 10543
Body.2
Count of elements in the result list=0
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
可是这里得到的特征和实际的不符合啊,例如Solid.1, its topological result is with the following tag : 474这行里得到的是Solid.1,并没有pad.1之类的出现。
我用另外一个文件实验了一下,用两个草图做了两个pad,我不会贴图,相信大家可以想象出来的吧,但是得到的结果是:
The list of Body Features: , has 1 element(s)
零部件几何体
Count of elements in the result list=3
实心.1, its topological result is with the following tag : 780
草图.1, its topological result is with the following tag : 263
草图.2, its topological result is with the following tag : 614
如果把草图也算在内的话,至少是4个元素啊,这里怎么搞的呢,有什么方法可以得到pad.1,pad.2,这样我可以用CADIPad接口去修改pad参数。
各位高手指点一下。谢谢 |