DesginTable API Question

Discussion in 'SolidWorks' started by George, Jul 15, 2004.

  1. George

    George Guest

    I'm writting a macro that inserts a design table from an Excel file using:
    Part.InsertFamilyTableOpen "designtable.xls" which works for the most part.

    This is basically the same as clicking "Insert->DesignTable->from File".
    However, When you do this maunally there is a check box that says
    "Link to file" which I believe sets the DesignTable.LinkedToFile property to
    "True".

    Would anyone have any idea how to set this property in a macro?

    Set DesignTable.LinkedToFile = True doesn't work. :-(

    TIA
     
    George, Jul 15, 2004
    #1
  2. George

    Stef Guest

    George,

    Just use the following without the "Set" before
    "DesignTable.LinkTofile". The LinkToFile property is a boolean
    (true/false), therefore you don't need to use "Set"

    DesignTable.LinkToFile = TRUE

    Steve
     
    Stef, Jul 16, 2004
    #2
  3. George

    George Guest

    Thanks, but... that doesn't seem to work either.

    "DesignTable.LinkToFile = TRUE"
    returns
    "Object doesn't support this property or method"

    :-(

    If I understand things correctlly.... DesignTable is the Object, and
    LinkTofile is the property.

    Where DesignTable is (in this case) defined by "Set DesignTable =
    Part.GetDesignTable".
    Part is defined by "Set Part = swApp.ActiveDoc"

    Am I missing something stupid here?

    TIA
     
    George, Jul 16, 2004
    #3
  4. George

    George Guest

    Never mind.......

    It's a SolidWorks problem. I've been banging my head thinking
    I was doing something wrong.

    New SPR written:
    229614 - Unable to set a design table to be linked to a spread sheet

    Thanks for all the help anyways.
     
    George, Jul 16, 2004
    #4
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.