Cancel
Showing results for 
Search instead for 
Did you mean: 

Have different pattern for Item_ID depending of groups

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello,

 

Anyone know if it is possible to have different naming rule for the Item_ID (for the same Item type) depending of the group.

 

Exemple:

Group A - Create Item - Pattern = nnnnnnn

Group B - Create Item - Pattern = "AV-"nnn

 

Thank you in advance for your help.

Regards,

 

7 REPLIES 7

Re: Have different pattern for Item_ID depending of groups

Gears Phenom Gears Phenom
Gears Phenom

Re: Have different pattern for Item_ID depending of groups

Gears Phenom Gears Phenom
Gears Phenom

Addition: if you have access to Solution Center
http://solutions.industrysoftware.automation.siemens.com/
then look there document with ID: josiasj_061312

 

also look good information from plmdojo site:

http://plmdojo.com/bmide/teamcenter-conditions/#.W5t6--gzZPY

Re: Have different pattern for Item_ID depending of groups

Gears Phenom Gears Phenom
Gears Phenom

Yes, this can be done with conditions like @ArthurRM mentioned. I've done it several times and it works well. Go through the links in Authur's post. If you have questions after that, I'll be glad to help you.

 

Jamie

Jamie Griffis | PLM Solution Architect | Engineering USA

Re: Have different pattern for Item_ID depending of groups

Experimenter
Experimenter

Hello,

 

we did this by defining conditions with custom input parameters.

You could create two naming rules and two conditions e.g. isGroupA and isGroupB with  

Signiture: UserSession u

Expression: u.group_name = "Group Name" 

 

Then use the corresponding condition when you attach the property in the naming rule.

I hope this could help you.

 

best regards

Re: Have different pattern for Item_ID depending of groups

Gears Phenom Gears Phenom
Gears Phenom

Review this post as well: https://community.plm.automation.siemens.com/t5/Teamcenter-Administrators-Forum/Restrict-naming-rule...

 

Jamie Griffis | PLM Solution Architect | Engineering USA

Re: Have different pattern for Item_ID depending of groups

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello @Jamie_Griffis, @Volker_A, @ArthurRM,

 

Thank you for your help, it's exatly what I wanted.

 

I allow myself to add some dificulty: do you know if it's possile on the save as recover the number of the first Item to the new Item ?

 

Exemple:

User group A --> Creat Item ---> "CAD-"nnnnnn --> CAD-000001

User group B --> Save as Item ---> "SAV-"nnnnnn --> SAV-000001

 

I recover the 000001 since the fisrt Item to the new Item.

 

That is posible ?

 

Best regards,

 

Re: Have different pattern for Item_ID depending of groups

Gears Phenom Gears Phenom
Gears Phenom
Each counter works independently and they will start where you set them.

Jamie
Jamie Griffis | PLM Solution Architect | Engineering USA