Skip to main content
1-Visitor
November 26, 2013
Question

Relation

  • November 26, 2013
  • 1 reply
  • 619 views

Hi all,



I have a question. I have 2 Creo parameters “Description” and “BOM_Description”
I have written a relation to make “BOM_Description” equal to “Description”
(BOM_DESCRIPTION=DESCRIPTION). This works fine. What I really want is for
“BOM_Description” to just equal the first 10 characters of the “Description”
parameter. So if “Description” was “Screw, HCS ¼” X 2” what I really want
“BOM_Description to be is just “Screw, HCS”. Does anyone have any ideas?


Thanks,


Brian


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

1 reply

15-Moonstone
November 26, 2013
Use the Extract function.

NAME10 = EXTRACT(NAME,1,10) get 10 chars starting at character 1



If param = abcdef, then:



*

new = extract(param,2,3)-new is bcd