几何尺寸与公差论坛

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

【转帖】creating program or macro to display material cost of par

[复制链接]
发表于 2009-4-13 10:05:27 | 显示全部楼层 |阅读模式
creating program or macro to display material cost of part
i would like to be able to use the mass and or volume information in sw to calculate and display the material cost of a part after i put in the material cost per mass or per volume. is it possible? where is a good place to start?
start by setting a custom property of the cost in the part, or simply ask the user for the value upon running the macro. all you then need to do is get the custom properties of the mass and cost, and do the math.
if you search the api for get custom properties you will have plenty of examples.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-24 09:16 , Processed in 0.036329 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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