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

yang686526 2009-04-13 02:55 PM

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


所有的时间均为北京时间。 现在的时间是 03:03 AM.