查看单个帖子
旧 2009-04-13, 08:58 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】api help

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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)