API: SP 3.1 apparently causing macros to fail

Discussion in 'SolidWorks' started by plh, Jun 1, 2007.

  1. plh

    plh Guest

    Hello All,
    I have a very elaborate macro that works for people who are using SP2.1 but not
    SP3.1. They get "Complile Error in Hidden Module". When I looked into it I found
    that it is stalling on...


    Dim swCfgMgr As SwDocumentMgr.SwDMConfigurationMgr
    Dim vCfgNameArr As Variant
    ....
    ....
    ....
    Set swCfgMgr = swDoc.ConfigurationManager
    vCfgNameArr = swCfgMgr.GetConfigurationNames

    .... this last line, with a message to the effect that the member
    GetConfigurationNames cannot be found. We all have SW2007.
    Has anyone else had this problem? is if fixed in SP4? (Although I must say that
    looking at the profanity laced subject lines concerning SP4, I am a little leery
    of that as a fix!)
    Any help with this would be greatly appreciated!
    -plh
     
    plh, Jun 1, 2007
    #1
  2. plh

    fcsuper Guest

    plh,

    Make sure correct libraries are checked under References. Sometimes,
    SolidWorks doesn't know to use the newer reference library
    automatically. All, make sure unnecessary libraries are removed.
    This would be my first stab at the issue.

    Other ideas might be here: http://sw.fcsuper.com/index.php?name=FAQ&id_cat=3#q9

    Matt
    http://sw.fcsuper.com
    Co-moderator of http://groups.yahoo.com/group/solidworks/
     
    fcsuper, Jun 1, 2007
    #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.