Need help with adding suffix characters to custom part number field

Need help with adding suffix characters to custom part number field

kwilson_design
Collaborator Collaborator
382 Views
3 Replies
Message 1 of 4

Need help with adding suffix characters to custom part number field

kwilson_design
Collaborator
Collaborator

Hey everyone,

 

Trying to get some help with creating iLogic to populate a custom iproperty field called “Finished part number”. The finished part number is just a suffix of “-N” at the end of the standard part number.

 

Example:

part number iproperty: 123-456789

Finished part number custom iproperty: 123-456789-N

Regards,
Kenny
If this post solved your issue please mark "Accept as Solution". It helps everyone...really!
0 Likes
Accepted solutions (1)
383 Views
3 Replies
Replies (3)
Message 2 of 4

JelteDeJong
Mentor
Mentor
Accepted solution

I guess it is as simple as this but maybe I did not get the question.

 

iProperties.Value("Custom", "Finished part number") = iProperties.Value("Project", "Part Number") & "-N"

 

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 4

kwilson_design
Collaborator
Collaborator

Geez not sure why I didn't think of it being that simple. It's late in the day and I'm still somewhat new to learning ilogic. Exactly what I need and thanks a lot!

Regards,
Kenny
If this post solved your issue please mark "Accept as Solution". It helps everyone...really!
0 Likes
Message 4 of 4

kwilson_design
Collaborator
Collaborator

Is it possible to create a variable or "If, then" statement so that it only runs this code if my part number begins with "PS"? We have multiple part numbering schemes and I only want to ad the "-N" suffix to files that begin with "PS" as the first 2 characters in the part number iproperty.

 

For example we may have a part number called PS123-45678, which I would want to add the -N suffix for my Finished Part Number custom iprop. However we may also have a part number called U555-55555 which I would not want to run then rule on to populate the -N. trying to keep users from having to decided when to suppress rules.

 

Any help would be greatly appreciated!

Regards,
Kenny
If this post solved your issue please mark "Accept as Solution". It helps everyone...really!
0 Likes