ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
SASebastian Acosta13/11/2012

The file naming convention that we use, has the part/drawing number first, followed by a description.

For example:

123456-001 - FRAME WELDMENT

123456-002 - TANK

123456-003 - SHAFT

123456-102 - AXLE

Custom properties can be linked to the file name, by typing something like:

Custom Property                   Value / Text Expression          Evaluated Value

Part No                                 $PRP:"SW-File Name"          123456-001 - FRAME WELDMENT

What I would like, is an expression that selects only the first 10 characters or so, such that:

Custom Property                   Value / Text Expression          Evaluated Value

Part No                                 ?                                          123456-001

Description                            ?                                          FRAME WELDMENT

This would be useful because, during a Pack&Go we commonly rename the number using the "select/replace". But then the custom properties need tidying up manualy or with a macro.

Any suggestions?