几何尺寸与公差论坛

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

【转帖】deleting features

[复制链接]
发表于 2009-4-13 10:16:13 | 显示全部楼层 |阅读模式
deleting features
hello all,
i am trying to write some code to delete the base feature as part of a conversion i am performing from another program.
can anyone point me in the right direction with regard to how to delete the base feature of a part, please?
the parts in question will only have one base part or protrusion and i need to delete that.
any help is appreciated.
thanks
hi david,
i can think of two ways:
1. if you know the name of the feature you can use the partdoc:: featurebyname
to get the feature then select it using feature:: select2 and then delete it modeldocextension:: deleteselection2
2. you can also use partdoc:: firstfeature command to get the first feature of a document and then get rid of it.
try and create your macro and get back here if you have any more issues.
cheers,
--stav.
in this world i am nobody...
and nobody is perfect ;) !!!
---------
solidworks office 2008 sp4.0
dell precision pws390
nvidia quadro fx 3450/4000 sdi
edited: 07/04/2008 at 07:08 am by stavros antoniou
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-24 10:03 , Processed in 0.034216 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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