几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】component2getcorrespondingentity (http://www.dimcax.com/hust/showthread.php?t=4664)

yang686526 2009-04-12 08:29 PM

【转帖】component2getcorrespondingentity
 
component2::getcorrespondingentity
hello all,
i was traveling through the api and i came across this function:
component2::getcorrespondingentity
i was wondering what the heck it does. i think this function might be able to help me solve the problem that i am having. if someone could explain what it actually does it would help me out alot.
here is the description:
"this method gets the entity that corresponds with the dispatch pointer in the context of the component."
brendan
hey brendan
the way i understand it is the following:
you have an entity in hand (vertex, face or edge) and by using this function you can get the entity object of the component/part that owns the entity we already have. (to use this you have to be in an assembly)
then using the entity object of the component/part you can get other information about the component/part.
hope this makes it more clear for you.
cheers,
--stav.
in this world i am nobody...
and nobody is perfect ;) !!!
---------
solidworks office 2008 sp4.0
dell precision pws390
nvidia quadro fx 3450/4000 sdi
quick


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