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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

[proesys] - Parameter Values

RandyJones
19-Tanzanite

[proesys] - Parameter Values

On 07/26/10 13:06, Terry McFall wrote:
> Somebody must have run across this situation before…
>
> We’re migrating IL 3.4 to PDML and need to create a parameter in each part having a value equal to the part’s name. The problem is our parts have a dash symbol (xxxxxx-xx) and we must remove it to
> match the equivalent name in SAP.
>
> Our brute force solution is pretty brutal… hiring an intern to manually enter a IL/ProE parameter value equal to the part no. but w/out the dash.
>
> Is there a way to script the value of a parameter as being equal to the filename minus one character?

Several options:

1. jlink

or

2. weblink

or

3. relations
    ie
    Assuming you have filename = 12345-xy and you want partno = 12345xy
    beforeDash = extract(rel_model_name(), 1, search(rel_model_name(), "-") - 1)
    afterDash = extract(rel_model_name(), search(rel_model_name(), "-") + 1, string_length(rel_model_name()) - search(rel_model_name(), "-")
    partno = beforeDash + afterDash

>
> -Ter
>
> Terrence (Terry) McFall
> CAD Systems Administrator
>
> Varian Medical Systems
> 911 Hansen Way
> Palo Alto, CA 94304
> 650-424-6039 desk
> 650-799-0179 cell

--

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.
0 REPLIES 0
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags