查看单个帖子
旧 2009-04-12, 08:32 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)