CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 6163
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedTEXT WITHIN A MULTI LINE

 Post Reply Post Reply
Author
CAD7875 View Drop Down
Groupie
Groupie


Joined: 15.Jul.2009
Location: United Kingdom
Using: autocad 2015
Status: Offline
Points: 24
Direct Link To This Post Topic: TEXT WITHIN A MULTI LINE
    Posted: 22.Oct.2014 at 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
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 626
Direct Link To This Post Posted: 22.Oct.2014 at 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....
Back to Top
CAD7875 View Drop Down
Groupie
Groupie


Joined: 15.Jul.2009
Location: United Kingdom
Using: autocad 2015
Status: Offline
Points: 24
Direct Link To This Post Posted: 22.Oct.2014 at 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, eg

fire alarm 50mm
comms 200mm
submains 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 Smile
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 626
Direct Link To This Post Posted: 22.Oct.2014 at 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.]


Edited by Kent Cooper - 22.Oct.2014 at 23:40
Back to Top
CAD7875 View Drop Down
Groupie
Groupie


Joined: 15.Jul.2009
Location: United Kingdom
Using: autocad 2015
Status: Offline
Points: 24
Direct Link To This Post Posted: 23.Oct.2014 at 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?
Back to Top
CAD7875 View Drop Down
Groupie
Groupie


Joined: 15.Jul.2009
Location: United Kingdom
Using: autocad 2015
Status: Offline
Points: 24
Direct Link To This Post Posted: 23.Oct.2014 at 09:00
its ok - I'd got the 'fill' option on! duh
 
you are official my hero!!! Clap this makes my job soooo much easier
 
thanks
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,436 seconds.