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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Parameter Values

TerryMcFall
1-Newbie

Parameter Values

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?

-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.
1 REPLY 1

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

--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
Fax: 785-667-2695
------------------------------------------------------------------------
Top Tags