Get Dimension Value in API

Discussion in 'SolidWorks' started by Mr. Pickles, Oct 8, 2003.

  1. Mr. Pickles

    Mr. Pickles Guest

    Maybe I'm dense, but I can't seem to be able to get the value of a dimension
    that is currently highlighted or selected. If the value is 2.5, then I want
    2.5 and not <DIM>. Anybody know how to get it?

    Thanks,

    Mr. Pickles
     
    Mr. Pickles, Oct 8, 2003
    #1
  2. I guess you're using DisplayDimension::GetText, but i'd you found a bug that
    should be reported
    try DisplayDimension::GetDimension, then Dimension::GetValue, which will
    return meters
    Then you'll have to play with Units if you really want a string.
     
    Philippe Guglielmetti, Oct 8, 2003
    #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.