API

Discussion in 'SolidWorks' started by Sean Chen, Jul 3, 2003.

  1. Sean Chen

    Sean Chen Guest

    I install Solidworks API and create a blank project with the wizard. When I
    compile I get the follow error:

    swDocTemplateTypeNONE, wDocTemplateTypePART, swDocTemplateTypeASSEMBLY,
    swDocTemplateTypeDRAWING undefine symbol, and AddToolBar2 is not a member of
    ISldWorks.

    Is there some files missing? Where can I get these files?

    Can anybody help?
     
    Sean Chen, Jul 3, 2003
    #1
  2. you need to:
    1) include swconst.bas as a module in your project (normally in C:\Program
    Files\SolidWorks\samples\appcomm)
    2) check "Solidwork 200x Type Library" in the "Project / References" menu
    see http://www.dynabits.com/sw/free_stuff.htm for some add-in projects with
    source

    Philippe Guglielmetti - www.dynabits.com
     
    Philippe Guglielmetti, Jul 3, 2003
    #2
  3. Sean Chen

    Sean Chen Guest

    I do have SolidWorks installed in my computer(ver 2000).
     
    Sean Chen, Jul 5, 2003
    #3
  4. Sean Chen

    Sean Guest

    Sorry I didn't mention that I use VC6.0, not VB.
     
    Sean, Jul 5, 2003
    #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.