几何尺寸与公差论坛

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

【转帖】macro to update cut lis

[复制链接]
发表于 2009-4-13 12:42:23 | 显示全部楼层 |阅读模式
macro to update cut list
i'm trying to use the following to force an update to the cutlist of a weldment with no success.
any body else have code to manually update the cut list?
description
this method updates an automatically generated cut list.
syntax (ole automation)
retval = bodyfolder.updatecutlist ()
output (variant_bool) retval true to update an automatically generated cut list, false to not or false because the document does not contain an automatically generated cut list
thanks
dim mybodyfolder as bodyfolder = nothing
dim mysubfeature as feature = mydoc.firstfeature
do while not myfeature is nothing
if myfeature.gettypename2 = "solidbodyfolder" then
mybodyfolder = myfeature.getspecificfeature2
if mybodyfolder.updatecutlist then
exit do
end if
end if
myfeature = myfeature.getnextfeature
loop
--john
thanks for the help. that gave me what i needed.
thanks again!
dan
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 14:06 , Processed in 0.035486 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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