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

yang686526 2009-04-13 12:25 PM

【转帖】iterating over the attributes of a componen
 
iterating over the attributes of a component
how do i iterate over all the attributes present in a component.
there is a function called component2->ifindattribute ( attributedef, whichone, &retval)
this function expects an attributedef. but i don't want to get a particular attribute which is associated with this attributedef.
i simply want to iterate over all the attributes if any.
please help. thanks in advance.
sw 2007 office premium sp1.0
anybody? please help.
sw 2007 office premium sp1.0
i don't think there's a way to do this. i think attributes must be called by name.
quick


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