Editing assembly distance mates

Discussion in 'SolidWorks' started by kellnerp2717, Oct 10, 2003.

  1. kellnerp2717

    kellnerp2717 Guest

    I haven't figured out how to edit assembly distance mates via API. Any thoughts? TIA
     
    kellnerp2717, Oct 10, 2003
    #1
  2. They added Mate2::DisplayDimension in SW2004 only...
    then DisplayDimension::GetDimension
    and Dimension::SetValue
     
    Philippe Guglielmetti, Oct 11, 2003
    #2
  3. kellnerp2717

    kellnerp Guest

    Thanks Philippe.

    I am still programming 2003. We are not ready for 2004 yet. I finally
    figured it out today after finding what I wanted in the example files.
    There is an example that traverses an assembly and lists
    features(components) and then subfeatures and finally displays dimensions.
    It is the only way I found to get a dimension object that I could modify.
    Once a handle is obtained a .systemvalue does the trick. One of the little
    inconsistencies I found is the naming convention for dimensions.

    My next step is to try to get at dimensions in a part that is in an
    assembly.
     
    kellnerp, Oct 11, 2003
    #3
  4. Right, I "forgot" that a mate is a Feature, which gives access to the
    dimensions.
    A "part that is in an assembly" is a Component, which you can traverse with
    FirstFeature..Next Feature just like a PartDoc. Good luck
     
    Philippe Guglielmetti, Oct 11, 2003
    #4
  5. kellnerp2717

    kellnerp Guest

    It took quite a bit of looking to figure it out. Don't feel bad. Editing
    part dimensions in an assembly is my next step.
     
    kellnerp, Oct 12, 2003
    #5
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.