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

yang686526 2009-04-12 08:32 PM

【转帖】cosmosworks api questions
 
cosmosworks api questions
i am trying to write a macro that gathers information about the tip displacement of a wing. the macro is written in c++ and uses the com interface. the function i need to use is:
status = cwresults->getdisplacementforentities ( ncomponent, nstepnumber, dispplane, arrayselectedentities, nunits, errorcode, &retval)
looking further at the api i am not sure of 2 things for this function:
1. the dispplane is a "dispatch pointer to reference entity" - what does that mean in this instance?
2. the arrayselectedentities is an "array of selected entities" of type variant. what is the variant type needed for this specific function - if someone could give me a simple example to go by that would be extremely helpful (just on how to make the variant really).
regards,
brendan
quick


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