Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Contributor
harbormaster
Posts: 15
Registered: ‎10-20-2011
Message 1 of 7 (1,157 Views)

nesting basic shapes using autocad script?....

1157 Views, 6 Replies
02-10-2012 08:28 AM

in short..at my job we use basic rectangle shapes, created in autocad, of various dimensions that we convert to .cnc files and manufacture parts out of these basic shapes.

 

Part of my job is to take these basic rectangles, and nest them as efficiently as possible within a given material size (in most cases, this raw material size is a 24x36 inch rectangle).

 

We have nesting software, but i am curious if anyone out there thinks that it would be possible to write an autolisp script that would nest a list of parts into a given 24x36 inch area as efficiently as possible?

 

The script would have to be able to rotate parts in 90 degree increments in order to create efficient nests.

 

Also, i already have a script built that can read an external .csv file. So importing the parts with sizes into autocad is not a problem, its the actual nesting part that I am curious about.

 

Any thoughts / input is appreciated, thanks in advance.

*Expert Elite*
pbejse
Posts: 2,406
Registered: ‎11-24-2009
Message 2 of 7 (1,145 Views)

Re: nesting basic shapes using autocad script?....

02-10-2012 07:28 PM in reply to: harbormaster

harbormaster wrote:

 

Part of my job is to take these basic rectangles, and nest them as efficiently as possible within a given material size (in most cases, this raw material size is a 24x36 inch rectangle).

 

We have nesting software, but i am curious if anyone out there thinks that it would be possible to write an autolisp script that would nest a list of parts into a given 24x36 inch area as efficiently as possible?

 

The script would have to be able to rotate parts in 90 degree increments in order to create efficient nests.

 

 

Any thoughts / input is appreciated, thanks in advance.



I'm intrigue, what will the final product look like?

 

Distinguished Contributor
lgabriel
Posts: 108
Registered: ‎05-01-2003
Message 3 of 7 (1,140 Views)

Re: nesting basic shapes using autocad script?....

02-11-2012 06:26 AM in reply to: pbejse

If you google "Nesting Shapes", there is a ton of software packages to do exactly what you want, not requiring AutoCAD.

 

Your post sparked interest in reading up on nesting algorithms. Its not simple. A degree in advanced mathematics is neccessary to even understand what I was reading.

 

It is doable (since packages already exist), but probably not using Autolisp, due to its limits, but rather Visual Basic. Since existing packages range from $300 to $800, the program will take a good amount of time and effort to create.

Mentor
stevor
Posts: 835
Registered: ‎12-26-2005
Message 4 of 7 (1,133 Views)

Re: nesting basic shapes using autocad script?....

02-11-2012 03:50 PM in reply to: harbormaster

Now many different part shapes are to be cut from the same 2'x3' stock; and

 

is each part shape only a rectangle?

 

S
Distinguished Contributor
lgabriel
Posts: 108
Registered: ‎05-01-2003
Message 5 of 7 (1,125 Views)

Re: nesting basic shapes using autocad script?....

02-12-2012 05:24 AM in reply to: stevor

For the interested, go to the link below to download a thesis on Nesting Algorithms

 

http://dspace.thapar.edu:8080/dspace/bitstream/123456789/403/1/m91300.pdf

Contributor
harbormaster
Posts: 15
Registered: ‎10-20-2011
Message 6 of 7 (1,105 Views)

Re: nesting basic shapes using autocad script?....

02-13-2012 08:41 AM in reply to: lgabriel

I actually use one of these nesting software programs where I work.  The process in order for us to make manufacturing files goes through a chain of different software packages...solidworks,excel, cutworks(nesting software), and autocad...

 

The reasoning for my post is that I was going to see if there would be a quick and efficient way to do away with our nesting software and combine file creation functions all into autocad.  By the sound of it thats not going to be the case.

 

Thanks for the input!

Mentor
stevor
Posts: 835
Registered: ‎12-26-2005
Message 7 of 7 (1,093 Views)

Re: nesting basic shapes using autocad script?....

02-13-2012 02:37 PM in reply to: harbormaster

That depends on the shapes. Rectangle into rectangle fits have only a few configurations.

Again, state your parameters.

S

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community