几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】changing part configuration in a drawing possible (http://www.dimcax.com/hust/showthread.php?t=5168)

yang686526 2009-04-13 09:42 AM

【转帖】changing part configuration in a drawing possible
 
changing part configuration in a drawing possible?
i have a part in a drawing (sw 2008) and i have a configuration list for the part. i would like to create a macro that will change the configuration of the part but am having an issue. i know that if you use part.showconfiguration "name" then it will change the configuration but only if you are in an assembly or editing the part. that command will not change the configuration while you are working in a drawing. i have already tried recording the macro with no luck. does anyone have any suggestions or maybe know a reference website with all the vba functions for a part?
thanks in advance!
-solidworks 2009 sp1
--dell precision m6300-
---intel core2 duo t9300------------------------
----nvidia quadro fx 3600m - 4gb ram----------
sean,
try looking at view::referencedconfiguration. i think it is what you are looking for.
jorn bjarning
cswp
cad & plm consultant
sw2008 sp5 / sw2009 sp2
quick


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