Skip to main content
Dale_Rosema
23-Emerald III
February 22, 2013
Solved

Math expression in a note (annotation)

  • February 22, 2013
  • 1 reply
  • 2454 views

I have a note that calls for ## holes in the part.

The print dimensions the spacing between the first two holes and says (## - 1) spaces.

I looked through the tips for text thread ( http://communities.ptc.com/message/185313#185313 ) but couldn't find anything.

Is there a way to perform this math within the note?

i.e. 14 holes there for 13 spaces (where the 13 is the pattern p## less one).

Thanks, Dale

Best answer by Dale_Rosema

"Spacenumber=p117-1" then use "&spacenumber.[0]" - Don't forget to trucate it since it is an integer. Thanks,

1 reply

17-Peridot
February 22, 2013

Yes, you do the math in relations and then use that new relation variable in the note.

Something like "spacenumber=pattern_qty-1" then "&spacenumber" can be used in the note

Dale_Rosema
23-Emerald III
February 22, 2013

What if the first item (pattern_qty) is not a parameter in the part, but just the dimension from the pattern feature? Is it then, "spaenumber=p117-1" then use "&spacenumver"? (Where p117 if the dimension for the quantity in the pattern).

Thanks,

17-Peridot
February 22, 2013

In relations, yes.