Display full version of the post: TEXT WITHIN A MULTI LINE

CAD7875
22.10.2014, 15:27

IS THERE A WAY OF PUTTING TEXT WITHIN A MULTI LINE - KEEPING THE TXT THE SAME HEIGHT EVEN WHEN CHAGE THE SCALE OF THE MULTILINE - I NEED TO PLOT A SERIES OF DIFFERENT WIDTH ROUTES AND WANT THE NAME OF EACH ROUTE TO BE WITHIN THE MULTILINE THANKS

Kent Cooper
22.10.2014, 16:25
Well, there's always the TEXT command, middle- or middle-center justified with its insertion point halfway between [M2P object snap in new-enough versions], for example, the midpoints of MLine edges....
But seriously, some more information, please.  Are you looking for something that works like a complex linetype, so that the same text element occurs at regular intervals along the Multiline?  That may not be possible -- in a very quick look, it seems MLine Styles can be defined to contain simple on-off linetypes and/or complex linetypes containing Shapes, but not those containing text [but maybe that's different in newer versions than I have here.]
 
If your Mlines are always zero-justified, a routine could probably be made easily enough that would make a Polyline copy along the same defining points, to which you could assign a complex linetype with text elements but presumably no linear elements between them.
 
Or maybe you're thinking of something else....

CAD7875
22.10.2014, 17:23
Hi Kent, im having to draw containment routes. Normally I would use multiline as we only draw the total width of the space needed for the containment however we now need each individual containment route drawn, egfire alarm 50mmcomms 200mmsubmains 300mm I know you can put text in linetypes but this looks messy, to my eye anyway and wondered if there was a way of putting the text within a multiline and as you say, plotted at regular intervals hope that makes a bit more sense

Kent Cooper
22.10.2014, 22:10
With Linetypes that have text but no pen-down part between, does it look acceptable?  You'll obviously want to decide on your own spacing, text style, etc.  -- I just modified AutoCAD's GAS_LINE type a little.  These use a zero-justified Mline with a separate Polyline having the complex linetype assigned, running along the same vertices.

 
Of course, there are the "issues" that text-containing complex linetypes can have, such as overrunning a corner when the text part falls in the "wrong" relationship to it, the continuous portions at the ends [I used Stretch to minimize them down to nearly nothing at the right ends], etc.   uploads/353260/MlineUtilities.txt
[Note that the system won't let me upload a .lin file, so I changed the filetype extension to .txt, which you'll need to change back in order to use the linetype definitions.]Kent Cooper2014-10-22 23:40:35

CAD7875
23.10.2014, 08:55

Kent!!!this is exactly what i'm after. ive copied your linetypes into notepad and have loaded them into a dwg however when I draw a multiline, its filled in like a polyline? When I draw the multiline, it looks just as the screenshot of yours do but as soon as I end the line, it fills in?any ideas?

CAD7875
23.10.2014, 09:00

its ok - I'd got the 'fill' option on! duh you are official my hero!!!  this makes my job soooo much easier thanks