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

Patterned numbers on a dial follow-up

ptc-116434
Newbie

Patterned numbers on a dial follow-up

Gurus,

I've beenexperimenting with the patternednumbers for a dial, but I've run into a problem. I am trying to get 0° through 350°to display on a circle. I've created a parameter 'DEG' and defined it as integer. SD8 is the patterned radial dimension. I generated the relation:

&DEG=itos(sd8)

and placed that parameter into my sketch. However, I can't get the '0' degrees number to show, instead I'm getting '***'.

When I remove the 'itos', I get '0.0000000000', but for some reason it won't display just the integer '0'. Any ideas? I did also notice that the parameter gets converted from an integer to a real number when the dimension is assigned, so I'm unable to force it in that manner.

Thanks,

Eric


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2

Patterned numbers on a dial follow-up

Hello Eric,

How about if you avoid the problem by adding the zero condition:

If sd8 == 0
DEG="0"
else
DEG=itos(sd8)
endif


Best regards,
Bob

RE: Patterned numbers on a dial follow-up

Setting the value to "0" works, but it shows up as a real number "0.0000000". If there's any easy way to truncate it, that would be fine.

Announcements