Getting custom prop / Surface Area through API

Discussion in 'SolidWorks' started by stevefye, Dec 1, 2005.

  1. stevefye

    stevefye Guest

    How do I get the resolved value of a custom property through the API?
    I'm trying to grab the value for the surface area for a part through a
    macro (not a VB project).

    I can get the "value" of the custom prop just fine, but cant figure out
    how to get the resolved value.

    The CustomPropertyManager::Get2 function is not doing it for me, or
    maybe I just dont have the syntax right.

    Any help appreciated!
     
    stevefye, Dec 1, 2005
    #1
  2. Maybe you mean this?
    retval = ModelDoc2.GetCustomInfoValue ( configuration, FieldName )



    --

    regards

    Markku Lehtola

    www.markkulehtola.net
     
    Markku Lehtola, Dec 1, 2005
    #2
  3. stevefye

    stevefye Guest

    Man, why couldn't I find that earlier????

    Thanks - it worked great!
     
    stevefye, Dec 1, 2005
    #3
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.