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

yang686526 2009-04-12 09:06 PM

【转帖】highlight of sketch
 
highlight of sketch
hello,
i need a highlight a simple straight line in some 3d sketch by api. similar like if mouse cursor move under gui.
i have tried this:
sketch swskx = (sketch)swftr.getspecificfeature2();
object[] objsegs = (object[])swskx.getsketchsegments();
foreach (object objseg in objsegs)
{
sketchsegment swseg = (sketchsegment)objseg;
swseg.select4(true, null);
body2 swwire = swseg.createwirebody();
int ires = swwire.display3(swasm.getcomponentbyname(swftr.name), 255, 0);
}
but it does not work.
thank you for response.
petr bartoš
quick


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