几何尺寸与公差论坛

 找回密码
 注册
查看: 618|回复: 0

【转帖】api help

[复制链接]
发表于 2009-4-13 08:58:22 | 显示全部楼层 |阅读模式
api help
hi, i want to use api method face2::issame. the syntex given in solidworks api help is as following
syntax (ole automation)
retval = face2.issame ( facein)
input:
(lpdispatch) facein
dispatch pointer to the face to be compared
return:
(bool) retval
true if the two faces are the same, false if they are different
it says, i have give the pointer of the face i want to compare as an input. can anyone please tell me how i can the pointer of a face.
thanks and regards
sonju chowdhury
you can get a face by getting the selection from solidworks using selectionmanager getseletedobject6 for one. you can get it by traversing a body or component, and many other ways. it all depends how you would like to get it.
ps the "pointer" is simply referring to a "face" object if you are wondering.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 23:51 , Processed in 0.036314 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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