Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Mtext

aghavamzadeh
Advocate

Mtext

aghavamzadeh
Advocate
Advocate

I am trying to understand this Paragraph Line Spacing in order to add blocks as bullets to each row.
It says Line Spacing 1.000x. So the Line Spacing should be 1, 2, 3 and so on
Where does spacing start from? When i measure it says 0,66 between the lines.
MText with height 1 is inserted at 0,0 and it is adjusted Top Left.
I attach the file here. 

 

What i want to do is to add blocks att same increment as Line Spacing. 

0 Me gusta
Responder
477 Vistas
4 Respuestas
Respuestas (4)

Kent1Cooper
Consultant
Consultant

Be aware of the difference between line spacing factor [a multiplier on the "native" distance -- that's what the x at the end is about] and line spacing distance [a raw number in drawing units].  You can specify either one for an Mtext object, and the other will be calculated appropriately.  In either case, it's measured not between the nearer edges of lines of content [your 0.666], but from a place on one line to the same place on the next line, typically thought of as baseline to baseline, but you can picture it however you like.  [I'll let you experiment with how that may vary if you have changes in text height within the Mtext -- is it still based on the overall-object line spacing and height, or is it related to the "local" height where a line break occurs?]  Typically the line spacing distance at 1.0x spacing factor is 1-2/3 times the text height, though that may vary with the font.  The factor value has a range limit -- it can be only between 0.25x and 4.0x.

Kent Cooper, AIA

Valentin-WSP
Mentor
Mentor

@aghavamzadeh ,

 


@aghavamzadeh wrote:

I am trying to understand this Paragraph Line Spacing in order to add blocks as bullets to each row.
It says Line Spacing 1.000x. So the Line Spacing should be 1, 2, 3 and so on
Where does spacing start from? When i measure it says 0,66 between the lines.
MText with height 1 is inserted at 0,0 and it is adjusted Top Left.
I attach the file here. 

 

What I want to do is to add blocks at same increment as Line Spacing. 


 

If it works for you, just place them at the same location as the default bullets.

 

See sample:

 

ValentinWSP_0-1711732326198.png

 



Please select the "Accept as Solution" button if my post solves your issue or answers your question.


Emilio Valentin
0 Me gusta

TomBeauford
Collaborator
Collaborator

Lower Case g,j,p,q & y as well as symbols and how you fractions are displayed in Mtext affect the height of each line as well so there's no magic coding solution. 

64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter
0 Me gusta

Kent1Cooper
Consultant
Consultant

@TomBeauford wrote:

Lower Case g,j,p,q & y as well as symbols and how you fractions are displayed in Mtext affect the height of each line as well.... 


That variability happens only if the Mtext's Line Space Style is set to "At least."  It can be eliminated by setting it to "Exactly" instead.

Kent1Cooper_1-1711884144925.png

If you want to change it by AutoLisp (subst)/(entmod) methods, it's the DXF code 73 entry in an Mtext's entity data.  From the DXF Reference:

Kent1Cooper_2-1711884343936.png

Or in either (setpropertyvalue) or (vla-put-...) approaches, it's called LineSpacingStyle -- same number values as in DXF 73.

Kent Cooper, AIA