×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

using string functions in block properties

using string functions in block properties

using string functions in block properties

(OP)
Our company uses a Solidworks Block to insert detail number Labels in drawings. When I insert the block it gets the detail number property from the part model as shown below.
DET:$PRPVIEW:"DetailNo"

Our company also uses coded file names, that's another issue in itself for another time perhaps!
back to the point!! Here is an example of a sample part file name
391-1_B_MF_02_DT_104.SLDPRT

notice the detail number is already part of the filename DT_104
My question is, Is it possible to use a string function in the block properties text to extract just the detail number portion from the filename property, rather than using a dedicated DetailNo property? We want to eliminate the DetailNo property if this works

Any help is appreciated

SW 2012 64bit

Tom Malinski

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources