几何尺寸与公差论坛

 找回密码
 注册
查看: 627|回复: 0

【转帖】highlight of sketch

[复制链接]
发表于 2009-4-12 21:06:45 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 10:49 , Processed in 0.036460 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表