+ Reply to Thread
Results 1 to 9 of 9

nesting 3D

  1. #1
    Registered User
    Join Date
    02-21-2010
    Location
    Italy
    MS-Off Ver
    Excel 2013
    Posts
    77

    nesting 3D

    Hi there,
    first of all I wanted to thank you for all the help you gave me and which allowed me to increase my basic knowledge of Excel VBA and after that to create a couple of projects by myself.

    Now I am dealing with another challenge and I would appreciate some advices on nesting 3D.

    This is the scenario: I have some structural panels, which number varies and according to project needs I provide cuts on these panels in order to fit. These panels have tongue and groove connection, so after cutting I may have female-cut or male-cut panels.
    Furthermore, I may need to cut the panels at a certain height as well.

    My goal is to minimize waste of panels subsequent panel cutting.
    I usually work in Autocad, and I can start off by creating 3D blocks or solids. I created some stretchable 3D blocks with 3D faces and set the attributes so that as soon as my panels lenght vary the attributes also update. Unluckily I can't set the height parameter so that my block would stretch as well but I created another attribute for user to write.

    What I'm asking is the following: can I export the attribute values of my blocks so that I can manage the data in Excel to calculate the required number of panels and the waste sqmt?

    I know I can export a .csv file with retrieved data from a Autocad file, but I don't know how to handle such data to perform what I need..

    I don't know even if this is the right approach or if I can get the same results in Excel without the use of Autocad, via data entry of the panels. The latter may be of great use if the user is not technical enough to draw in Autocad..

    I attach a sample Excel file with some possible situation to handle.

    I know it's not the easiest project to handle but if someone could give me some advices that would be greatly appreciated.

    bye
    P.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: nesting 3D

    Just trying to clarify what you are doing.

    A. Is it to tell Excel what you want to cut and for excel to calculate the amount of waste

    or

    B. To tell excel what you want to cut and excel will calculate the mimimum number of boards and the waste.

    If you go down the route of entering the board sizes and orientation then I think A will be possible especially if the number of cut pieces from a board are small.

    Option B I think would be challenging.

    PS (as I suspect you might know) what sort of weight per square meter is material suitable for making an insulated container? The container would be 2.43mt x 2.34x6.06


    click on the * Add Reputation if this was useful or entertaining.

  3. #3
    Registered User
    Join Date
    02-21-2010
    Location
    Italy
    MS-Off Ver
    Excel 2013
    Posts
    77

    Re: nesting 3D

    Hi Tony, and thanks for your interest in this project! :-)

    Actually if I plan to import a Autocad .csv file, I will have the info of height, width and panel cut type (female-cut, male-cut, whole panel).
    I don't know a lot of programming, and this is basically why I'm here to ask for help.
    Anyway, I'm just asking if the csv file importing and Excel to calculate the minimum number of boards required is the right/easiest way to accomplish the task OR performing the calculation in Autocad (it's possible to program in there with LISP or VBA as well) and export only the results of such calculations to Excel.
    When I talk about calculation in Autocad, I'm thinking about achieving the results by combining the shapes (read solids) in the drawings by overlapping them and by reading the "overflow".
    As an alternative, I insert the 3 info about each panel and the total number of panels for each type and perform all the calculations from that within Excel.

    Don't know which way is possible, and which one is best.. in a few minutes I created a very basic Excel macro to calculate a 1D nesting (only for study purpose of course), very simple it requires only a RoundUp formula, given whole panel length, cut panel length and number of cut panels. Of course the 2D and 3D nesting would be by far more difficult to get...

    bye
    P.

    PS: Tony, pm for you in minutes..

  4. #4
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: nesting 3D

    I would be interested to see a copy of the autocad file to see what could be done with it.

  5. #5
    Registered User
    Join Date
    02-21-2010
    Location
    Italy
    MS-Off Ver
    Excel 2013
    Posts
    77

    Re: nesting 3D

    Hi Tony, and Hi forum :-)

    Sorry for the late reply, but it's a very busy working day..
    Attached you'll find a Autocad 2008 file containing a solid and a 3d dynamic block I created.
    This is only the female-cut type panel, please consider the male-cut is just the same.
    Whole type panels have only height attribute.

    If you try to export csv files from Autocad you'll see you can restrict the exporting values to only blocks, and retrieve only the info you need: in this case only the blocks attributes.

    Bye and thanks for your time! :-)
    P.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-21-2010
    Location
    Italy
    MS-Off Ver
    Excel 2013
    Posts
    77

    Re: nesting 3D

    Hi Tony, and Hi forum

    I know nesting 3D is maybe a quite difficult topic but since I didn't know for a while and my need is real I just wanted to ask you which one is the 'right' approach to handle the task.

    At the moment I don't know if the calculation of the minimum number of panels required is possible/easier to perform in Excel - starting by a data entry or data import from Autocad data-extraction - or within Autocad itself - by retrieving data from solids/blocks (VBA as well even there).

    What I would like to know from forum gurus like you, the moderators or some other valuable contributor is if this is a topic never encountered, what are your considerations, your impressions, in order to allow me to more forward.

    If I wasn't clear in my previous posts about my needs, please feel free to ask for more infos.

    Thanks again for your time
    P.

  7. #7
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: nesting 3D

    Hi,

    unless someone knows better, importing data directly from the autocad file you attached previously is going to be extremely difficult. If there is another format which gives the dimensions and attributes in a simple (maybe CSV) format that could be useful.

    From what I understand the raw material comes in panels that you then cut to size.

    You then have a list of pieces that you want to cut and you want to find the most economical way to cut these from a series of panels.

    Are the pieces to be cut all rectangular? It makes the tesselation easier.
    What is the maximum number of pieces that could be cut from a board? If the number is high then it all becomes a lot mre complicated.

    How many total boards and how total cut pieces would be normal and maximum?

  8. #8
    Registered User
    Join Date
    02-21-2010
    Location
    Italy
    MS-Off Ver
    Excel 2013
    Posts
    77

    Re: nesting 3D

    Hey Tony

    Actually exporting data from Autocad is very simple. I can provide you xls, csv, txt or even mdb files as you like by merely using Data Extraction tool directly in Autocad.

    See the attached files I prepared as a mere sample of what is the data I can provide for calculations. The data in this example consider only the use of F-T panels (that is female-cut panels), but just imagine that if the drawing would contain M-T and WHOLE panels as well you'd see them listed in the generated lists too.

    The data can be cataloged in different ways as needed, but typically it's like the file you can see: Block/solid or any entity QTY, Entity Name, Attribute 1, Attribute 2, etc.

    For now the csv, xls, txt and mdb files looks like this:
    QTY NAME HEIGHT WIDTH
    1 F-T 2730 290

    And now some other infos about the possible scenarios which will be encountered:

    All panels, M-T , F-T and WHOLE panels have to be cut from a whole panel.
    Beware in the drawing I may have panels which name is WHOLE, since they're not cut in the width, but they're cut in height. If needed I can change the Autocad block name to display different names for those panels (i.e. F-T, M-T, T-T is to add as well since I can have cut-cut panels, LOW for whole panels cut at minor height, WHOLE).
    The quantity of panels to be cut from a whole panel differs of course, but in my experience it's never more than 5..say 10 to be 100% sure.
    The pieces are rectangular, if real need be of a different outline and I have to provide a single 'shaped' panel I will provide Autocad the dimensions of the outer panel dimensions.
    Say I have a 'squared-P' size panel, I will give you the height and the max panel width regardless of the waste to cut.
    Total number of Autocad drawn panels to provide for calculation may differ from a dozen to hundreds..

    thanks again for your time
    bye
    P.

    PS: since I may need such panels to be of different height according to building needs, I would want to tell Excel to consider the WHOLE panel height attribute, the actual size of the panels to be ordered.
    Say in a project I have to order 2730 high panels, and in another 2430 high panels. The WHOLE Autocad blocks will have an attribute which will tell the calculation to consider such height as the kind of panel to consider to cutting from.
    Hope I was clear with this one.
    Attached Files Attached Files
    Last edited by fredpox; 04-18-2010 at 07:55 AM. Reason: PS added

  9. #9
    Registered User
    Join Date
    02-21-2010
    Location
    Italy
    MS-Off Ver
    Excel 2013
    Posts
    77

    Re: nesting 3D

    Hey tony and hey forum,
    it's been a while but I still don't see developments on this thread.
    Maybe this project is too difficult or time consuming to handle or I wasn't clear enough in my explanation.
    Anyone else may light some dark if this would even be possible to achieve in VBA or just head me in the right direction?
    This is an important project to me, and I am willing to dedicate and invest my time to make developments and improvements, just I don't know precisely where to start.
    If you could just spot and list the macro processes and steps involved in a project like this, so that I can see what's behind the project I'm asking that would be much appreciated.

    Thanks again for your support.
    P.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1