cancel
Showing results for 
Search instead for 
Did you mean: 

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

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

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

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

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

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

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

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.