几何尺寸与公差论坛

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

【转帖】iterate to solve area macro

[复制链接]
发表于 2009-4-12 18:46:34 | 显示全部楼层 |阅读模式
iterate to solve area macro
i am looking for a macro or instructions on how to create a macro to increment a dimension and then check the surface area until the desired surface area is acheived. i ahve two areas that i need to make the same and right now i have to keep entering values and checking the areas until i get it right.
thanks - bob
it may be easier to enter say 3 or 4 values and keep track of the resulting areas then use excel to make a trend. then just set the two trends equal to each other and solve for the dimmension that you are looking for
or maybe better yet you could make a design table part with tons of configurations and just keep the mass properties window open while you flip through configurations till you find one with the right area.
my two cents
i do something similar to that now but it is too time consuming when i have to do several areas - i am looking for something more automated.
may sound an odd question but how complex are these surface areas, what shape are they? if you email me the part or upload it here i can create a macro to do it for you
here is a simplified version of the model, i would like a macro that varies d1 until a1 and a2 are equal.
thanks!
it appears most of the sketch lines are fixed, not relational. is that because you have simplified it? i was hoping to see the actual relations to work out some math code to solve it instead of trial and error. if it has relations could you upload that file, if not for now i will create a macro to brute force solve the areas.
how accurate would you like the areas to be done too?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-1-3 10:00 , Processed in 0.034658 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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