Captureing Events

Discussion in 'SolidWorks' started by kmcdermot, Jan 24, 2006.

  1. kmcdermot

    kmcdermot Guest

    I am new to event programming and am having problems figuring out how
    to create a program that will run another program whenever the save or
    saveas command is used. Does anyone know of sample code that would
    point me in the right direction?

    Thanks,
    Kyle
     
    kmcdermot, Jan 24, 2006
    #1
  2. There's an example for events on SW-site...that's a good start. I think
    it was for VB.

    --

    regards

    Markku Lehtola
    Certified SolidWorks Professional (CSWP)

    www.markkulehtola.net
     
    Markku Lehtola, Jan 24, 2006
    #2
  3. kmcdermot

    That70sTick Guest

    If you want to constantly monitor for events, you should make an
    add-in. Keeping a macro on to monitor events eats up a lot of
    processor bandwidth and is not as reliable.

    Get familiar with the "Withevents" option when defining object
    variables. You need to specify this, or you simply will have no access
    to an object's event triggers.

    I have a VB6 template for creating addins from macros. It is on my
    website somewhere, <http://www.esoxrepublic.com>. (I can't remember
    the exact link, I am in China at the moment and can not get access to
    my own site over the "Great Firewall of China".)
     
    That70sTick, Jan 25, 2006
    #3
  4. kmcdermot

    CS Guest

    You can also download the SW2006 SDK from solidworks this will
    automatically setup an addin and gives you the options to setup events
    and the like
     
    CS, Jan 26, 2006
    #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.