TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: topshelfvalueinc on May 21, 2023, 12:45:49 AM

Title: Fill in the gap of my nested item
Post by: topshelfvalueinc on May 21, 2023, 12:45:49 AM
So i have a program that i am using to nest shapes into a contained area ( sheet of foam ) and sometimes my nested items do not fill the full sheet. for example my foam size is 72x120 inches, if i cut a 24x72, 24x96, and then im left with a space of 48x96. im trying to make a code that will give me the best optimized items from the list below to fill in the space for little to no waste. My sizes that i can use to fill in the dead space is 24x72, 24x84, 24x96, 24x120, 30x72, 30x84, 30x96. What im hoping is a function that i can give a list of items that will be nested and it will output 2 pieces 24x96 or it would say if instead of it being 48x96 inches left over i had 54x96 it would say 1 piece 30x96 1 piece 24x96
Title: Re: Fill in the gap of my nested item
Post by: ribarm on May 21, 2023, 03:15:49 PM
Maybe this topic will give you some ideas to try to code for your needs...

https://www.theswamp.org/index.php?topic=52260.0
Title: Re: Fill in the gap of my nested item
Post by: topshelfvalueinc on May 21, 2023, 03:38:56 PM
Yes so i found one that nests and it works amazingly but im looking for something that will add parts into the nest on sizes i use usually if the sheet isnt fully used, for example i have the drawing below, its already been nested now i need to know from the sizes below, which sizes are best used to maximize the remaining spaces, 24x72, 24x84, 24x96, 24x120, 30x72, 30x84, 30x96
Title: Re: Fill in the gap of my nested item
Post by: topshelfvalueinc on May 27, 2023, 04:43:45 PM
willing to pay for this if someone can figure it out for me

Title: Re: Fill in the gap of my nested item
Post by: mhupp on May 29, 2023, 03:19:41 PM
Free website to calculate this. I think you can use spread sheets to speed up the inputs.

Only really calculates rectangles areas I think.
https://www.cutlistoptimizer.com/
Title: Re: Fill in the gap of my nested item
Post by: topshelfvalueinc on June 08, 2023, 09:26:15 PM
how do i get the formula that it uses?
Title: Re: Fill in the gap of my nested item
Post by: kdub_nz on June 09, 2023, 03:35:37 AM
how do i get the formula that it uses?

I'd assume it's under lock and key on their back end server.

Title: Re: Fill in the gap of my nested item
Post by: topshelfvalueinc on June 12, 2023, 02:22:54 PM
this is more nesting but the portion that provides remaining spaces is neat. If someone can mimic this for me and say you can add a sheet of this from your stock list and it will still work ill provide payment for the help. please message me for more details
Title: Re: Fill in the gap of my nested item
Post by: ribarm on June 12, 2023, 02:29:20 PM
I think you double posted topic at cadtutor...
https://www.cadtutor.net/forum/topic/77700-is-this-doable/

Some of us answered...
Title: Re: Fill in the gap of my nested item
Post by: topshelfvalueinc on June 26, 2023, 09:51:47 PM
so that wasnt me but thats for nesting what i need is before nesting i need a script that will add any additional sizes if my material has any extra space for it. so or example my sheet is 72x120, im cutting a 24x72, 30x72, 36x72, whats left is a 30x72, i need my script to say this is how much space is left add this from the list of available stock items