API Design Table

Discussion in 'SolidWorks' started by Wayne Tiffany, Nov 24, 2004.

  1. Has anyone done any API projects that manipulate a design table? I have
    been looking through everything I can find, and I only find a small handful
    of examples. My larger picture here is to open a VB6 project, display a
    form, populate some list boxes with values from a spreadsheet, let the user
    select/fill in some values, then generate a model based on the values in all
    the boxes.

    Any help would be appreciated.

    WT
     
    Wayne Tiffany, Nov 24, 2004
    #1
  2. I haven't really decided yet. I think I would like to give the user the
    option of generating a new part file, or adding the new info to an existing
    one. Either way, my master table that I start with will be an external
    Excel file, and I will start with a SW part file template that already has
    all the dimensions, etc that are related to the DT.

    WT
     
    Wayne Tiffany, Nov 24, 2004
    #2
  3. Wayne Tiffany

    CS Guest

    Wayne,
    Do you want to generate a model with a design table or make an new
    config for one that already has one.

    Corey
     
    CS, Nov 24, 2004
    #3
  4. Wayne Tiffany

    CS Guest

    Then all you should need to do is Create a new config in the file and edit
    the dims in the config you already know their names since you have total
    control over that. It will populate the design table for you. I am sure you
    have already thought of this, but just incase.

    Corye
     
    CS, Nov 24, 2004
    #4
  5. Hmmm, actually I hadn't. My thought was that since there are many cells in
    the table that contain equations, I would need to do the work in the DT so
    the appropriate values would be calculated.

    WT
     
    Wayne Tiffany, Nov 24, 2004
    #5
  6. Wayne Tiffany

    CS Guest

    I couldn't vouch for what would happen in that case.

    Corey
     
    CS, Nov 24, 2004
    #6
  7. Are you using VB6/.NET or VBA? If you are not using VBA, you could always
    just launch Excel via code. Then, your Excel file is completely separate
    from SW. You can make the Excel file as complicated as necessary, then just
    read the values you want to assign to specific SW dimensions.
     
    Evan T. Basalik, Dec 7, 2004
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.