查看单个帖子
旧 2009-04-13, 10:05 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】creating program or macro to display material cost of par

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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)