Text size in sketch

Text size in sketch

Anonymous
Not applicable
798 Views
4 Replies
Message 1 of 5

Text size in sketch

Anonymous
Not applicable

I have a sketch within a part, with the aim of using it as a "model sketch" in an IDW

 

The sketch will have one item of text, taken from a model parameter of an angled dimension (ie. d23) which might equate to 10 deg.

 

I link this parameter into my sketch, then add the deg symbol after it (so it now reads 10°)

 

So far, so good.

 

However, when I write an ilogic code to resize the text in the sketch (depending on the scale of my drawing view) - the deg symbol disappears (now reading simply 10)

 

Solutions?

 

Capture.JPG

 

 

0 Likes
799 Views
4 Replies
Replies (4)
Message 2 of 5

mcgyvr
Consultant
Consultant

Picture is ok.. Posting the ipt with the ilogic code is far better..

 

 

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks - see attached

 

The relevant "rule" would be 'nozzle #1 orient'

And the relevent form would be 'annotation' (try changing the scale) - this is when the deg symbol disappears.

0 Likes
Message 4 of 5

johnsonshiue
Community Manager
Community Manager

Hi! I am still trying to understand your code. But, I think there might be a logical flaw somewhere. It is just not apparent to me at the moment. Here is my proof. I simply edit NOZZE #1 ORIENT sketch and edit the text. I add a degree symbol in front of 10. Then I run the rule. All I get is the degree symbol. This means that the rule seems to only process the first character in the textbox and omits the rest of the strings. Please take a look at the rule and see if there is an algebraic error.

Many thanks!



Johnson Shiue ([email protected])
Software Test Engineer
0 Likes
Message 5 of 5

mcgyvr
Consultant
Consultant

I'm headed out the door but..

 

The actual formatted text is 2 style blocks..

<STYLE>10</STYLE><STYLE>deg symbol is here</STYLE>

 

Your code seems to be only taking the first style block and ignoring the last thus you are losing the degree symbol..

 

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes