API: Insert Explode View

Discussion in 'SolidWorks' started by Corey Scheich, Oct 8, 2004.

  1. Ok I have been messing with this I am trying to add explode steps and it
    works fine if the explode view object is allready setup but
    Configuration::AddExplodeStep won't add the explode view. SW 2004 sp4.2
     
    Corey Scheich, Oct 8, 2004
    #1
  2. Corey Scheich

    That70sTick Guest

    I've been looking into this in the hopes of helping you find an answer.
    I only find more questions.

    How is the direction defined? This is not part of the
    AddExplodeStepAPI (2003)

    How can one edit an explode step? The ExplodeStep object has no
    methods for changing parameters.

    Vexing.
     
    That70sTick, Oct 11, 2004
    #2
  3. retval = Configuration.AddExplodeStep (explDist, reverseDir,
    rigidSubassembly, explodeRelated)
    reverseDir is how you define the direction you also have to have your
    selection marks correct first you have to have to select your reference
    entity which will define the direction. The only problem I have with this
    is with the exception of flat surfaces you don't have a good reference as to
    which direction you are exploding.

    Does anyone know any API for displaying the temporary direction arrows using
    a vector or something for realtime feadbac?
    You are right it seems that to do a simple edit to an explode step you would
    have to get it's parameters delete it and create a new one all together.
    Quite cumbersome if you just want to change the direction or add another
    component.

    Corey
     
    Corey Scheich, Oct 11, 2004
    #3
  4. Corey Scheich

    That70sTick Guest

    I know that there is a parameter for flipping the direction, but I
    can't see how to determine what that direction actually is. What if
    one wanted to explode along a specific vector, such as defined by an
    axis or face or edge? The SW interface REQUIRES this information, yet
    there is no place in the API to provide it.
     
    That70sTick, Oct 12, 2004
    #4
  5. I thought that might have been what you were getting at that is why I said

    "The only problem I have with this
    is with the exception of flat surfaces you don't have a good reference as to
    which direction you are exploding.

    Does anyone know any API for displaying the temporary direction arrows using
    a vector or something for realtime feed back?"

    Corey
     
    Corey Scheich, Oct 12, 2004
    #5
  6. Corey Scheich

    rocheey Guest

    I know that there is a parameter for flipping the direction, but I
    I, too, am now interested. Since in other features, such as extrudes,
    I have been unable to programatically change the vector. Also, in features
    such as extrudes, when MANUALLY changing a direction vector, it automatically
    propagates to ALL configurations....
     
    rocheey, Oct 13, 2004
    #6
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.