AutoCAD 2013/2014/2015

AutoCAD 2013/2014/2015

Reply
Distinguished Contributor
jackshield
Posts: 3,213
Registered: ‎10-22-2003
Message 1 of 10 (655 Views)
Accepted Solution

LINETYPE with two colors?

655 Views, 9 Replies
08-06-2013 08:22 AM

I need to represent some lines, in model space, that alternate in color, yellow/red, that are "scalable" with respect to different sscale viewports in paperspace.

 

my initial idea was to use two lines, each in which the dash and space between were the same distance, then just offset the yellow/red lines enough for each to fill the others gaps.

 

but, wondering if it was possible to represent that in a single linetype?

*Expert Elite*
dbroad
Posts: 1,551
Registered: ‎08-16-2007
Message 2 of 10 (637 Views)

Re: LINETYPE with two colors?

08-06-2013 09:10 AM in reply to: jackshield

No.  You might  be able to use an associative array to do what you want but colors are set at the object level (except for mtext)

*Expert Elite*
vladimir.michl
Posts: 243
Registered: ‎09-17-2006
Message 3 of 10 (618 Views)

Re: LINETYPE with two colors?

08-06-2013 10:32 AM in reply to: jackshield

You can do this with multilines - see

http://www.cadforum.cz/cadforum_en/qaID.asp?tip=1818

 

Vladimir Michl, www.cadstudio.cz

 


Distinguished Contributor
jackshield
Posts: 3,213
Registered: ‎10-22-2003
Message 4 of 10 (600 Views)

Re: LINETYPE with two colors?

08-06-2013 11:43 AM in reply to: vladimir.michl

DING DING DING ... WE HAVE A WINNER!

 

This is perfect!

Distinguished Contributor
jackshield
Posts: 3,213
Registered: ‎10-22-2003
Message 5 of 10 (593 Views)

Re: LINETYPE with two colors?

08-06-2013 12:01 PM in reply to: jackshield

AND THE PARTY WAS SHORT LIVED!

 

being able to assign width was another factor, no option for that with mline?

*Expert Elite*
vladimir.michl
Posts: 243
Registered: ‎09-17-2006
Message 6 of 10 (585 Views)

Re: LINETYPE with two colors?

08-06-2013 12:10 PM in reply to: jackshield

Do you mean linewidth? A standard linewidth property applies also to MLines - see the Properties palette (Ctrl+1) and switch LWidth display On.

 

Vůadimir Michl, www.cadstudio.cz  www.cadforum.cz


Distinguished Contributor
jackshield
Posts: 3,213
Registered: ‎10-22-2003
Message 7 of 10 (579 Views)

Re: LINETYPE with two colors?

08-06-2013 12:19 PM in reply to: vladimir.michl

not seeing that option, but that would be great if i can find it ...

*Expert Elite*
vladimir.michl
Posts: 243
Registered: ‎09-17-2006
Message 8 of 10 (574 Views)

Re: LINETYPE with two colors?

08-06-2013 12:25 PM in reply to: jackshield

Sorry, it is called lineweight (not using the English version) in the Properties. The display switch can be toggled with the LWDISPLAY variable.

 

Vladimir Michl, www.cadstudio.cz  www.cadforum.cz


Distinguished Contributor
jackshield
Posts: 3,213
Registered: ‎10-22-2003
Message 9 of 10 (567 Views)

Re: LINETYPE with two colors?

08-06-2013 12:38 PM in reply to: vladimir.michl

yea, thats line weight, it applies to plotted values.

 

i was referring to line width, as with polylines, you can assign width to line.

 

i am representing some painted lines for aisles, 1:1 in model space.

 

for now, i am using a polyline, solid yellow, with a copy that is a dashed red.

created linetype for the red to be 10" spacing.

 

each bylayer, i move the red to the front, and above other objects.

 

this gives me the dashed line without too much trouble.

 

although i will use the mline option in the future, where a line width is not required.

Distinguished Contributor
RafaelMoreno
Posts: 226
Registered: ‎11-06-2006
Message 10 of 10 (203 Views)

Re: LINETYPE with two colors?

04-17-2014 12:41 PM in reply to: jackshield

 

Hi guys:

 

It was so nice to find this CAD forum that you are talking about. Much appreciated. Anyway, I have a problem setting colors as soon as I have mlines in the drawings whose styles become are not longer available. Any ideas?

 

Rafael

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.