几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » SolidWorks二次开发
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-04-13, 01:03 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】need macro or software to optimize space in a bo

need macro or software to optimize space in a box
hi all.....
i need a macro or software that can optimize orientation of many parts with different size and shape.
look at image below for more clear :
thanks for any advice
click for full image
a bit math intensive this one.
the basic principles are to get the box oriented at 0, 0, 0, 0, 0, 0 (x, y,z, pitch, yaw, roll) to make life much simpler. so you are working with a simple box size.
then loop all parts that are to go into the box and get their minimal bounding box. the easiest way is to do a brute force incremental analysis of rotating the part in all axis by increments of a degree or so and find out which orientation has the smallest box for an x, y and z of 0.
with all parts having their minimal bounding box size and required orientation it is then just a case of doing a basic math function to best fit squares into a square.
of course the minimal bounding box does not take into account complex shapes and will just box off all shapes, so if you were to do a load of shapes that looked like l-brackets for example then the code would be unsuitable.
if you want to get really complex and accurate your next step is to create nesting algorithms, but for more than one reason i am not going to go into detail about how to do that as i would be typing all day! lol
hi luke,
thanks for give me steps to solve this case...
unfortunately, i dont have programing background ?
do you know where i can by the program ?
or would you like to create those for me ? how about the price ?
thanks
i'd say me but at the moment i am extremely busy with other programs so the lead time would likely be a while but feel free to email me your requirements (complex nesting or simple) and any other info and i will liase with you on the matter (contact@angelsix.com)
this is essentially a unsolvable problem. because there's no way of verifying if a more optimum solution exist, except by iterating over all possible solutions. and that in essence is not possible. if the objects are box shaped then at least in theory its easier.
several vendors have software for this. theres actually wide variety of attacks against this. but as said its not easy to do a solve. theres atleast several very sophisticated thesis works done about this subject that i know of.
ps: by the way when and if somebody manages a solve each and every logistics/ sheetmetal cutting company etc... in the world will want to buy it form you.
there are many ways i could "solve" the issues by using the same 2d nesting algorithms such as dynamically adapting compact neighbourhood algo's (cna) or orthogonal meta-heuristic theories to work on a 2d plane (x,y), and a 2d plane (y,z) and the third (z,x), treat each as a 2d nest, then rank them together for best fit into the 3d space, and then use some heuristics to quickly chose the best ranking nests and eliminate 70%+ of lower success rate solutions. progress that to a 3 teir design and then for the successful teir do some actual trial and error cpu bashing to get actual results.
i didn't think there would be a mass market for such a thing but yes it is certainly possible, are there not already 3d nesting software packages out there?

edited: 10/29/2008 at 10:21 am by luke malpass
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
Scheme 程序语言介绍之一 huangyhg 专家系统 6 2010-02-18 01:22 PM
【转帖】how to transform a point in sketch space to assembly space yang686526 SolidWorks二次开发 0 2009-04-13 12:04 PM
【转帖】execute a sw macro from a macro of another software, is it possible yang686526 SolidWorks二次开发 0 2009-04-13 10:46 AM
【转帖】custom property macro bugging ou yang686526 SolidWorks二次开发 0 2009-04-13 10:09 AM
【转帖】copy an existent sketch into a macro yang686526 SolidWorks二次开发 0 2009-04-12 08:31 PM


所有的时间均为北京时间。 现在的时间是 07:23 AM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多