$PRP

Discussion in 'SolidWorks' started by Factory Whistle, Dec 28, 2009.

  1. I have a question about $PRP commands. I use a $PRP:"SW-File Name"
    string to display the part file name in a drawing stock list. The
    particular result I achieve is a 13 digit string, something like this-
    41044-011-004. The 004 part of this string is actually the detail
    number of the part. My question is; how can I write a $PRP command
    that masks the first 10 digits of the part number, displaying only the
    string 004, in another part of the drawing stocklist. I appreciate
    any suggestions.
     
    Factory Whistle, Dec 28, 2009
    #1
  2. Factory Whistle

    manager Guest

    Just work backwards.

    Have two PRP strings and concatenate them.

    $PRP-LONG NUMBER = 41044-011
    $PRP-SHORT NUMBER = 004

    If you want both then put $PRP-LONGSTRING+$PRP-SHORTSTRING in a note.

    TOP
     
    manager, Dec 28, 2009
    #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.