几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】drawing view - selected face, get edges (http://www.dimcax.com/hust/showthread.php?t=4697)

yang686526 2009-04-12 08:43 PM

【转帖】drawing view - selected face, get edges
 
drawing view - selected face, get edges
i have a drawing view of a sheet metal flat pattern. typical practice here is to show scribed edges as a yellow phantom line. i have put together a macro that will turn the selected lines into yellow phantom.
i would like to take this a step further. i would like to select a face in a drawing view. the external edges should be selected and then changed to phantom yellow by the macro.
i guess what i am asking is can someone help me get the selected face from a drawing view and select the external edges. i have tried a few things and have looked in the api help, but i have had no luck.
i have attached an image of a sample.
thanks in advance for your help.
tony szuta
cswa, cswp, cswp-smtl
intel core2 quad (q6600 @ 2.40 ghz)
nvidia quadro fx 4600 sdi
solidworks 2008 sp 4.0 (x32 & x64)
solidworks 2009 sp 2.0 (x32 & x64)
click for full image
quick


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