bsief
Mechanical
- Nov 19, 2019
- 2
I am trying to link the file name of a part to the text feature within the part. We do this to add the stamped fixture number to every part. Our file names are layed out as "Fixture_MA-XXXXXX-XX.prt" and I would like to remove the "Fixture" and the ".prt". Currently I am trying to use the following sample as a formula in the text input area
last(splitstring(first(splitstring(ug_askcurrentworkpart();"."));"_"))
This works but it does not update the text or the value of the formula within the expressions if the file is renamed. The attachment shows when the formula was put in the expressions when the file was named "Fixture_MA-444444-44.prt" and then renamed into "Fixture_MA-444444-45.prt" but the text and the value of the formula never updated.
Can Anyone help with this?
last(splitstring(first(splitstring(ug_askcurrentworkpart();"."));"_"))
This works but it does not update the text or the value of the formula within the expressions if the file is renamed. The attachment shows when the formula was put in the expressions when the file was named "Fixture_MA-444444-44.prt" and then renamed into "Fixture_MA-444444-45.prt" but the text and the value of the formula never updated.
Can Anyone help with this?