Skip to main content
14-Alexandrite
June 17, 2019
Solved

Partslink autonaming rule (if boolean attribute)

  • June 17, 2019
  • 2 replies
  • 1747 views

Hello,

 

I need help for creating an autonaming rule for a node (partslink). I can't write correctly a rule taking account an "if" function with boolean (yes/no)

 

Input data :
- "My part" (text)
- Attribute1 (boolean)

 

My formula :
"My part" + (attribute1==yes) ? "something" : ""

 

The second part of the formula doesn't work.

I'm trying to make him write that if the attribute1 is "yes" then write "something". Otherwise, don't write anything more.

 

Can anyone correct me ?

Regards,

Arnaud

Best answer by nsamardzija

Hi Arnaud,

 

Currently, that feature does not support logic/arguments for Boolean Attributes. 

 

The Autonaming feature supports:

Node Name, Attribute (alone), Strings, and Attribute w/ function (only for Integers and Real Numbers)

 

Nick

2 replies

11-Garnet
June 18, 2019

Hi Arnaud,

 

Currently, that feature does not support logic/arguments for Boolean Attributes. 

 

The Autonaming feature supports:

Node Name, Attribute (alone), Strings, and Attribute w/ function (only for Integers and Real Numbers)

 

Nick

5-Regular Member
June 19, 2019

To add to Nick's response, there is a knowledge article as well,

https://www.ptc.com/en/support/article?n=CS257756

...that confirms Nick's information.