extracting mass property and dynamic linking

Discussion in 'SolidWorks' started by clay, Jan 19, 2005.

  1. clay

    clay Guest

    Is there a "simple" way to have the surface area mass property
    dynamically display in a drawing? I can do this statically by creating a
    custom property, but I have to manually update the value as the part
    changes. So It would be nice to have a hook to the calculated mass value.

    clay
     
    clay, Jan 19, 2005
    #1
  2. clay

    CS Guest

    I came up with this cheat. Currently it will display the precision of the
    model not the drawing.

    "SW-Mass@$PRPSHEET:"SW-File Name".SLDPRT"
    for a part

    "SW-Mass@$PRPSHEET:"SW-File Name".SLDASM"
    for an assembly file

    Regards,
    Corey
     
    CS, Jan 19, 2005
    #2
  3. clay

    clay Guest

    Thanks, but this only shows the part mass (weight) which is great. I
    need to show the surface area also. How do I find the property
    hook/variable whatever for surface area?

    clay
     
    clay, Jan 19, 2005
    #3
  4. Just a thought, and maybe not even a good one. You can put a macro feature
    in a Feature Tree. Could you use that to poll the mass properties and
    update a property in the drawing? That way, every time the drawing rebuilt,
    the properties would update.

    WT
     
    Wayne Tiffany, Jan 19, 2005
    #4
  5. clay

    clay Guest

    There has to be a simple way to extract the info. The SW-mass@$prp that
    Corey posted displays the Weight correctly, which is only ONE of the
    mass properties, so there "should be a way to access the others. Hell, I
    could do this in Cadkey 15 years ago.

    Where can I find the list of all the SW-$prp properties?

    clay
     
    clay, Jan 20, 2005
    #5
  6. clay

    Merry Owen Guest

    It is SW-SurfaceArea.

    Merry :)

     
    Merry Owen, Jan 20, 2005
    #6
  7. clay

    CS Guest

    Merry has it. I was going to look it up but I didn't have the time last
    night. Anyway you can figure out which ones will work in this manner by
    opening a model File>Properties>Custom look under the drop down for Linked
    to Value: there is a list of the mass properties. if you select one the
    value field will be populated with the string all you need for the drawing
    is what is before the @ symbol and replace SW-Mass with the string and you
    are set.

    Corey
     
    CS, Jan 20, 2005
    #7
  8. That's what I thought also, but I couldn't find area or anything resembling
    it in the list. I tried forcing it by typing it, and no go.

    BTW, one property in the list is "XXX" and it takes it, returning, in my
    case, ".005." What is it? I thought maybe it was the precision of the
    primary units, but I changed that and it didn't go with it.

    ********* GOT IT ********
    Create your note and put a property in it like this
    "SW-SurfaceArea@@Default@Property test block.SLDPRT"


    WT
     
    Wayne Tiffany, Jan 20, 2005
    #8
  9. clay

    clay Guest

    Thanks everyone. this is great. So essentially, you can create or add a
    custom property and link it to a mass property value. Hmm.... why would
    you ever want to link a mass property value to anything but a mass
    property?? anyway, thanks again.

    clay
     
    clay, Jan 20, 2005
    #9
  10. clay

    CS Guest

    You did understand that you don't have to create the custom property didn't
    you?
     
    CS, Jan 21, 2005
    #10
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.