cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Relation

bwilson-2
8-Gravel

Relation

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 1
msteffke
14-Alexandrite
(To:bwilson-2)

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




Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags