Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

using string functions in block properties

Status
Not open for further replies.

TomMalinski

Mechanical
Joined
Aug 5, 2010
Messages
24
Location
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top