Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

restric the number of characters on the value of a custom property

Hi everyone,

 

here is what i want to do. I have created a custom property let's name it "custom_prop". i want that the values that can take "custom_prop" cannot have more than 5 characters or digits. for example "AZ549" may be a good value,"ADMIN" also, "4AE" also, "Z7" also, but "A15789" should not be possible.

 

Can you, please, help with finding how to do this ?

 

thank you

 

Regards

2 REPLIES

Re: restric the number of characters on the value of a custom property

[ Edited ]

You could use a regular expression in your naming rule, something like %^([A-Z+1-9])\w{1,5}? might work (I have not tested this).

 

Arden Bedell | Teamcenter Wonk | Applied CAx, LLC
Solution
Solution
Accepted by topic author benjamin1
‎06-20-2017 05:02 AM

Re: restric the number of characters on the value of a custom property

Hello,


Thank you for your answer, with your naming rule and some tests I found the solution:
%^([A-Z+1-9]){1,5}$

Best regards.