Fixed Length Text and Attribute Property - Autocalc Width Factor

Anonymous

Fixed Length Text and Attribute Property - Autocalc Width Factor

Anonymous
Not applicable

Often times text and attributes are contained within a shape or box.  Generally in most cases the text is fine at a normal width factor of 1.00,  but when you have overflow and need to adjust the width factor it really is a guess and check game to get something visually appealing.

 

  Having a property that sets a maximum physical/visual length on the text object would save a lot of fumbling around with width factors.  

 

The fit justification option of text often misses the mark because I never want a width factor larger than 1 and you also dont get the various other justification options.

 

 So as long as the visual length of the text does not exceed the maximum set length (distance may be a better term) it should remain as width of 1. 

 

 If it Exceeds then automatically recalc the width factor so that the text stays within the max set distance.

 

I think basic formula would be:

MSL = maximum set length

CVL = current visual length

CWF current width factor

NWF = new width factor

 

NWF = 1.00

 

 if (CVL > MSL)

{

  NWF = MSL\CVL;

}

 

CWF = NWF

 

Im sure there's a hell of a lot more to it than that on the code side, but you get the picture.

 

This behavoir would be a massive help with attributed Title Blocks and could have many other uses as well.

Reply
Accepted solutions (1)
3,644 Views
8 Replies
Replies (8)

dan908
Autodesk
Autodesk
Accepted solution

This is a good request. We saw the feedback email you sent earlier. It is not something we are currently looking at, but the development team understands the request and thinks it is reasonable. So, this might be the start of floating around the idea as an enhancement. 



Dan

AutoCAD Quality Assurance Manager

pavanjella
Autodesk
Autodesk

Thanks for the idea and sending us this note.

MTEXT command offers WIDTH property to set physical length. One can set the width property via Property Palette - 'Defined Width' or while using the MTEXT/-MTEXT command - 'W' option. Does this option work you or is this not solving the issue are calling out here. 

Thanks,

Pavan Jella

AutoCAD Test Development

0 Likes

Anonymous
Not applicable

MTEXT does not seem to provide the desired effect.

 

tex inside box

 

Adding 5 more "a" characters.

 

Overlap

 

The text still wants to overlap its desired bounds and requires manual editing of the width factor to make it fit the box.

 

Adjusted width factor

 

The time saving factor of an automatic width factor calculation is to not have to manually adjust the width factor in the event of the overlap of the border.

 

User gets to define this distance and no matter how many characters get added the width factor automatically adjusts to keep the text within its limits.

 

Autocalculate distance in Red

 

Hope this clears up my original post.

Designer_1E
Enthusiast
Enthusiast

Did anything ever come of this?

0 Likes

dan908
Autodesk
Autodesk

So far this has not been implemented. I still really like this idea.



Dan

AutoCAD Quality Assurance Manager

dtenhave
Participant
Participant

Has there been any development on this or is an update available? This is a feature that would be quite useful

0 Likes

cadffm
Consultant
Consultant

No, still  justification FIT or nothing.

Sebastian

0 Likes

brendanchambers
Participant
Participant

I'm sure it will be implemented any day now. After all, it's only been 11 years.

0 Likes