Custom Linetype Creation

Custom Linetype Creation

joe_kohli
Advocate Advocate
567 Views
11 Replies
Message 1 of 12

Custom Linetype Creation

joe_kohli
Advocate
Advocate

I am trying to make a very custom linetype and need some help/direction on how to perform this. So, I attached the .dwg and it shows exactly what linetype style and feel I would like. Not sure if this is possible or even the correct way but this is what I would like to have. I would like the colors and text to all be on one layer. Where do I start and how do I do this?

 

 

0 Likes
568 Views
11 Replies
Replies (11)
Message 2 of 12

pendean
Community Legend
Community Legend

@joe_kohli How much did you do so far in the program's HELP on the topic?

 

How do you see this working? Fake it in your DWG file to show us please

pendean_0-1741193346424.png

 

0 Likes
Message 3 of 12

joe_kohli
Advocate
Advocate

I searched for some topics on this, but I could not find anything that fit my needs.

 

I would like to make this a linetype if possible. Something like this?

joe_kohli_1-1741193591795.png

 

 

0 Likes
Message 4 of 12

Kent1Cooper
Consultant
Consultant

I think you're out of luck, with a linetype approach.  A linetype definition can't involve changes in width or color.  You could get at least partway there with a Multiline Style definition, though.  It could call for a custom linetype for the Text inclusions, but they couldn't be different colors.  Whether you could get the variance in width for the edges to related correctly to the text, I'm not sure.  And it would be edges, without the color infill.

Kent Cooper, AIA
0 Likes
Message 5 of 12

Sea-Haven
Mentor
Mentor

I think it was @Kent1Cooper that suggested using multi line types that could produce possibly what you want. You would make a dashed style linetype that is used in conjunction as a PLine linetype which can have a width, then you would have a text line type. It is feasible to make a line type with text, for me add to custom linetype file then load that linetype. This would occur when the linetype with text is not already created, meaning that you don't need a 100 linetypes.

 

I have no idea if it will work as linetypes can do some weird stuff. This is a dummy attempt the rest of the line needs all sorts of adjustment, to get the matching pattern.

SeaHaven_0-1741215550174.png

 

Start with say dashed linetype modify it and here is an example Character linetype.

 

*ELECTRICITY_CONDUIT,Electricity conduit ----E----E----E----E----E----E--
A,40,-5.08,["E",STANDARD,S=1.8,R=0.0,X=-1.8,Y=-.9],-3

Experiment change "E" to "PV009     Gas Main" you may have to change the length the text gap ie 40 -5.08 -3

0 Likes
Message 6 of 12

joe_kohli
Advocate
Advocate

Ya, I am finding this to be a little bit difficult. So, I am going to simplify it and go a slightly different approach. This led me to another question. See how in my screenshot the insertion point is at the start of the line, ON the line? Is there a way that you can change the start/insertion point where the red "X" is at? Can this be done with a custom linetype? Basically like an offset insertion point.

joe_kohli_0-1741711468202.png

 

0 Likes
Message 7 of 12

Kent1Cooper
Consultant
Consultant

It is doable with a MultiLine Style.

Kent Cooper, AIA
0 Likes
Message 8 of 12

joe_kohli
Advocate
Advocate

Ok, lets go this route then. How do I change the insertion point then?

joe_kohli_0-1741713792042.png

 

joe_kohli_2-1741713846318.png

 

 

 

0 Likes
Message 9 of 12

Kent1Cooper
Consultant
Consultant

Just don't use balanced positive and negative Offset values.  Three of them, all non-zero in the same direction [in this case 1.0, 0.75, 0.5], when used at Zero justification in the MLINE command, yields this [the blips are the picked points it was drawn by]:

Kent1Cooper_0-1741714182292.png

 

Kent Cooper, AIA
0 Likes
Message 10 of 12

komondormrex
Mentor
Mentor

just other approach is using inverted font in custom line definition. you surely could not color it differently, but can achieve something similar to your needs.

komondormrex_0-1741714335509.png

 

0 Likes
Message 11 of 12

joe_kohli
Advocate
Advocate

Kent your the man! Can you set the justification to bottom as a DEFAULT? 

 

Also, how do I change the linetype to make it more bold like what is shown below? I have an example of what I would like to be vs what it is in the bright green multiline? 

 

joe_kohli_2-1741717923211.png

 

Current setting of the RED "gas - gas - gas":

joe_kohli_3-1741717952713.png

 

 

 

Results of trying to make it work:

joe_kohli_0-1741718622628.png

 

0 Likes
Message 12 of 12

Kent1Cooper
Consultant
Consultant

I suggest that the Height of any Text Style that is used in linetypes should be non-fixed, i.e. zero [not your 0.125].  Then in use, the size will be determined by the linetype definition and scale.

Kent Cooper, AIA
0 Likes