Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Certain text characters not properly centering within text box. Bug?

NathanL9792
Participant Participant
314 Views
4 Replies
Message 1 of 5

Certain text characters not properly centering within text box. Bug?

NathanL9792
Participant
Participant

I've been playing with the sketch text function and have found that while most characters will properly center themselves horizontally and vertically in my sketch as designed, a few characters will bizarre move to the right. 

 

Could someone please confirm if this is a bug or unexpected behavior?

 

Screencast and model attached.

 

(You'll see in the model I've also been having fun exploring the user parameters function and parametric modeling in general.)

 

As an aside (I'm mostly just venting at this point), in the process if playing with these functions, I've also already encountered the following previously documented bugs or unexpected behaviors:

 

  • Parametric formulas require you to cancel out the dimensions. Ex. d2 + d2 will work but d2 * d2 will not. You must use d2 * (d2 / 1 in).
  • Sketch text height will accept a parametric input but it only loads in the raw value upon initial setup and does not update.
  • You cannot use driven dimensions as parameters for other dimensions (hence why I have a user parameter expression of "( 2 * sqrt(( ( 0.5 * d1 / 1 in ) ^ 2 ) - ( ( ( d6 / 1 in ) + ( d33 / 1 in ) + 0.5 * ( d2 / 1 in ) ) ^ 2 )) ) * 1 in")

 

Screencast link because I keep getting the "Your post has been changed because invalid HTML was found in the message body." bug when I try to embed it: https://knowledge.autodesk.com/community/screencast/77119bba-e4ef-406e-bbe0-e3b5a2f04d9d
 
 
 
0 Likes
315 Views
4 Replies
Replies (4)
Message 2 of 5

g-andresen
Consultant
Consultant

Hi,


@NathanL9792 wrote:

 

  • Parametric formulas require you to cancel out the dimensions. Ex. d2 + d2 will work but d2 * d2 will not. You must use d2 * (d2 / 1 in).
  • d2 * d2 = x in² > not possible
  • Sketch text height will accept a parametric input but it only loads in the raw value upon initial setup and does not update.
  • that's how it is at the moment
  • You cannot use driven dimensions as parameters for other dimensions
  • correct, this is currently not possible
 

Just do it the way I show in the screencast.

 

günther

0 Likes
Message 3 of 5

NathanL9792
Participant
Participant

Thank you for the info and the screencast.

 

I see it worked for you in your screencast but I think you'll find that if you change the font from Arial to Consolas and increase the text character height to 0.188, you'll see the issue where certain characters will not center properly. It appears to be font related since Arial centers fine no matter the text character height but Consolas will not center if the width of the character (derived from the character height) is too large.

 

 
I only mentioned the other bullet point issues out of frustration in that it feels like I'm always finding some weird quirk no matter what I do. I'm aware the quirks I mentioned are just how it works right now. I doesn't mean I have to like it. 😅
0 Likes
Message 4 of 5

g-andresen
Consultant
Consultant

Hi,

1. The letters must not exceed the height of the box.

2. This is also understandable, because in the menu the position of the character in the box is defined (centered, right/left...).


However, an error message should be given.

 

günther

0 Likes
Message 5 of 5

NathanL9792
Participant
Participant

It would be understandable if the letters couldn't have a height greater than the text box, but that doesn't appear to be the case. Having letter height at 0.30 in. with a text box height of 0.188 in. works fine, except if you use the Consolas font the left/right centering will not work properly. If you stick with the Arial font, the centering works fine. This looks like a bug to me.

0 Likes