Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need a good mathmatician that can create basic 2D CAD coordinates

Featured Replies

I have a solution that makes crates in sizes anywhere from about 1'x1'x1' to 100+'x20'x20'. A crate panel is constructed somewhat like the wall on a home using 4'x8' plywood and 2"x4" lumber but there are options to orient plywood sideways rather than the usual requirements of orienting it vertically. There is also a restriction of a minimum size that a piece must be such as 16" or larger.

As would be expected, there's a bit more to understand than this but that covers basic variations.

Please refer to the attached crate panel diagram and script snippet. The crate panel diagram reflects the most complex panel due to the rotation of some plywood. The script should be self explanatory but what I've done doesn't need to be used.

I am in need of having a script written that will:

1) Determine the size, orientation and placement of each piece of plywood.

2) Clear and populate a related table with each individual piece of plywood. Fields include Length, Width, xStart, xEnd, yStart and yEnd.

3) Clear and populated a related table with each individual piece of lumber using the same fields.

You do not need to develop any interface.

For simplicity, I'll supply you with a small file that should include everything you need. I think this everything is in place other than the script.

You can post back here or contact me directly at [email protected].

Thanks much.

Crate_Panel.png

Crate_Panel_Script.png

Hi,

Briefly - look on Genetic Algorithm.

  • Author

I've received a couple of emails saying that the attached script isn't that self explanatory so hopefully the following will help.

The script that I included identifies the number of rows of plywood then the number of columns of plywood. Initially it determines the number of full size pieces of plywood then determines the remaining area that is not yet covered. If the remaining size is less than $minPlySize (the minimum dimension allowed for any one piece of plywood) then it adds the last piece using the minimum size and goes back to the first piece and reduces it's size as necessary to allow the last piece to be as large as required.

This method reduces the number of cuts and, as much as reasonably possible, assures that seams on the front and back (or left and right) of the crate don't line up.

If the crate panel is smaller than one sheet of plywood, then the script needs to check if it's OK to rotate the plywood.

After these steps are done, it needs to create a separate record for each piece of plywood including X, Y coordinates for that piece. This step is optional if it seems to present challenges.

After completing plywood, it needs to add the lumber over the seams and then between the seams based on predetermined maximum spacing.

Please feel free to email me or post here if you have any questions.

Thanks.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.