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

swx constant x-ref
is there an easy way to cross reference the number returned from say... selectionmgr.getselectedobjecttype3 w/ the enumeration swselecttype_e?
i really don't feel like counting as the number returned is 97. i need to figure out what solidworks thinks the object is so i can get the proper pointer to it.
thx,
eric
go to the object browser and find the enumeration there. you can quickly (relatively speaking) scroll down thru those to see what number is what. counting sounds like a bad idea as i doubt they are in order. i know it's a pita though.
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)