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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table and Repeat Region Formula for Truncating filename field

  • Thread starter Thread starter jungleb77
  • Start date Start date
J

jungleb77

Guest
Hi Guys,

I know that this is possible, but the horrendous PTC documentation doesn't turn anything up. I'm looking for a relation formula to truncate a filename field.

We've got filenames that look like: 12-345678_short_note.drw

I'd like to show this in title blocks and BOM tables as simply 12-345678

Anyone done this? Any good sources for help on this type of thing?

thanks in advance,

--John
 
John,
Try something like this in relations.

where=search(rel_model_name,"_")
drawing_no=extract(rel_model_name,1,where-1)

Charles
 

Part and Inventory Search

Sponsor

Back
Top