Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Table relations

Bryce Lee

New member
I am trying to set up a BOM table but our PDM system adds 9 under scores and a 6 digit number after our part number. I am trying to write a relation to only include the part numbers before the under scores.


Example: 174490_________535303.prt (need to only keep 174490)


Any ideas!!


Thanks!!


Lee
 
Thanks!! Do you know the wild card fornumber.





Example: 174490_________535303.prt


in relations would be


??????_________??????





Thanks,





Lee
 
not sure there is a wildcard, but you can use







search(string, substring)

Searches for substrings. The resulting value is the position of the substring in the string (0 if not found).



extract(string, position, length)

Extracts pieces of strings.search for underscore, get that value then extract
 

Sponsor

Articles From 3DCAD World

Back
Top