Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fixed Length Text and Attribute Property - Autocalc Width Factor

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
Anonymous
3429 Views, 7 Replies

Fixed Length Text and Attribute Property - Autocalc Width Factor

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.

7 REPLIES 7
Message 2 of 8
dan908
in reply to: Anonymous

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
Message 3 of 8
pavanjella
in reply to: Anonymous

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

Message 4 of 8
Anonymous
in reply to: pavanjella

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.

Message 5 of 8
Designer_1E
in reply to: dan908

Did anything ever come of this?

Message 6 of 8
dan908
in reply to: Designer_1E

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



Dan

AutoCAD Quality Assurance Manager
Message 7 of 8
dtenhave
in reply to: Anonymous

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

Message 8 of 8
cadffm
in reply to: Anonymous

No, still  justification FIT or nothing.

Sebastian

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

State of Sustainability Webinar


AutoCAD Inside the Factory