几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】api help (http://www.dimcax.com/hust/showthread.php?t=5073)

yang686526 2009-04-13 08:58 AM

【转帖】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.


所有的时间均为北京时间。 现在的时间是 06:30 PM.