cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Math expression in a note (annotation)

Dale_Rosema
23-Emerald III

Math expression in a note (annotation)

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

ACCEPTED SOLUTION

Accepted Solutions
Dale_Rosema
23-Emerald III
(To:TomD.inPDX)

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

View solution in original post

5 REPLIES 5

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
(To:TomD.inPDX)

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,

In relations, yes.

Dale_Rosema
23-Emerald III
(To:TomD.inPDX)

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

I am learning some other interesting things about the hole parameters.

If you create a note and you make it's parent a hole feature, you can use the hole's "hidden" parameters in the note as long as you can 1) remember the capitalize the variable and 2) include the &. It seems to be the only way you can access the holes note variables: (I know there is more if more parameters are specified for the hole)

&METRIC_SIZE

&THREAD_SERIES

&THREAD_CLASS

&STD_HOLE_TYPE

&VAR_THREAD

&THREAD_DEPTH

&NUMBER_SIZE DRILL

&DIAMETER

&VAR_DEPTH

&DRILL_DEPTH

&PATTERN_NO

I can see no way to use these particular variables in directly in relations. They are somehow buried in the feature which only note annotations can access as long as the associated hole is the parent. Oddly enough, the note's leader doesn't have to be associated with the hole, or even have a leader at all.

Announcements

Top Tags