SldWorks.SldWorks ? Reference missing?

Discussion in 'SolidWorks' started by What-a-Tool, Oct 11, 2004.

  1. What-a-Tool

    What-a-Tool Guest

    I notice that at lot of the SW API examples use the following Type
    definitions.
    Dim swApp As SldWorks.SldWorks
    Dim swModel As SldWorks.ModelDoc2
    Dim swModelTitle As SldWorks.ModelDoc2
    Dim swModelPath As SldWorks.ModelDoc2

    They always cause a compile error for me, though.
    I just re-define them as Type Object and everything works fine, but I'm just
    wondering why this happens.
    Anyone tell me why?

    Thanks

    --

    / Sean the Mc /


    "I have not failed. I've just found 10,000 ways that won't work."
    - Thomas Alva Edison (1847-1931)
     
    What-a-Tool, Oct 11, 2004
    #1
  2. What-a-Tool

    What-a-Tool Guest

    I've got it - Needed the reference to Sldworks Type Library added. Sorry

    --

    / Sean the Mc /


    "I have not failed. I've just found 10,000 ways that won't work."
    - Thomas Alva Edison (1847-1931)
     
    What-a-Tool, Oct 11, 2004
    #2
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.