Create Linetype with 2 text

Create Linetype with 2 text

Anonymous
Not applicable
2,756 Views
10 Replies
Message 1 of 11

Create Linetype with 2 text

Anonymous
Not applicable

I am trying to create a Linetype that is ;

Line, text 1, Line, text 2, line

 

I have managed;

Line, text, line

 

Can any one point me in the right direction please.

0 Likes
Accepted solutions (1)
2,757 Views
10 Replies
Replies (10)
Message 2 of 11

j.palmeL29YX
Mentor
Mentor

I don't know what exactly you need. 

You can easily "embed" two different Textes (here an example with  textes "T1" and "T2") in the line type definiton.

 

A,.5,-.2,["T1",STANDARD,S=.1,U=0.0,X=-0.1,Y=-.05],-.2,.5,-.2,["T2",STANDARD,S=.1,U=0.0,X=-0.1,Y=-.05],-.2

 

Maybe I didn't understand your problem ... (?) 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 3 of 11

Anonymous
Not applicable

I have created a line type that is;

line,ELEC,line(which then repeats according to the length of the line.

 

I want to change it to;

line,ELEC,Line,Z(rotated 45degrees)Line, (which then repeats according to the length of the line.

 

It took me a fair while to create the original, but from that I have created other Linetypes which all work. Does that make more sense?

 

0 Likes
Message 4 of 11

j.palmeL29YX
Mentor
Mentor

If I understand you right now, you only want to repeat the (rotated) "Z", but not the first text (ELEC)?

If so - that's IMO not possible to realize with a line type definition. 

Otherwise (if your goal is another) let us see your line type definition what you have until now. 

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 5 of 11

Anonymous
Not applicable

I have attached a .DWG of my line type. I wish to add to the linetype a Z, which should be rotated 45 degrees.

Does that help?

 

Thank you all for you help

 

Colin

0 Likes
Message 6 of 11

j.palmeL29YX
Mentor
Mentor

@Anonymous wrote:

 

Does that help?

 


 

Not really. 

You have to create a new line type definition. 

Because I don't know your knowledge of using and creating line types (and what are *.lin files for) I guess the simplest way can be to use the Express Tool (I hope it is installed) MKLTYPE:

- draw what you want to get ( a line, a space, the text ELEC,  a space, the rotated text Z, a space)

- start the command mkltype

- follow what you are asked for

- use the new linetype. 

 

 

 

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 7 of 11

Anonymous
Not applicable

This is the string I use, and works for me,(and the basis for other lietypes which have different text).

*elec,--- MC ---
A,7.0,-0.4,["Elec",mcstyle,S=1,R=0,X=0,Y=-0.5],-4.0

I looked at your example and changed my string and saved as another file. Unfortunately it wouldn't load.

String I used below.

*elecz,---mc---
A,7.0,-0.4,["ELEC",mcstyle,S=1,R=0,X=-0,Y=0.5],-4.0,5.0,-2.0,["Z",mcstyle,S=1.0,U=0.0,X=-1.0,Y=-5.0],-2.0

 

Think I well maybe be an example of a little knowledge is a dangerous thing, but if someone could point out my error, I would be grateful.

 

Regards

 

Colin

0 Likes
Message 8 of 11

Patchy
Mentor
Mentor

I've not seen anywhere this type of line could be done.

0 Likes
Message 9 of 11

SergeiFilippov
Participant
Participant

try this: 

may need to adjust text style and size but it should give you what you need.

 

*Elec_Z,Elec Z Line ---Elec Z---Elec Z---Elec Z---Elec Z---Elec Z---
A,2,-.4,["ELEC",STANDARD,S=.15,R=0.0,X=-0.1,Y=-0.05],-.45,0.5,-.4,["Z",STANDARD,S=.15,R=45,X=-0.1,Y=-.05],-.45

 

0 Likes
Message 10 of 11

j.palmeL29YX
Mentor
Mentor
Accepted solution

@Anonymous wrote:

This is the string I use, ...


 

This is what I asked above and wanted to see. 😉 

Now we can solve your problem. 

 

First I tested your linetypes ELEC and ELECZ. 

It looks like shown in Pic_1. ELEC is ok, in ELECZ the Z is at the wrong place and is not rotated. 

 

Now I did 2 small corrections in your ELECZ definition: 

*elecz,---mc---
A,7.0,-0.4,["ELEC",mcstyle,S=1,R=0,X=-0,Y=0],-4.0,5.0,-2.0,["Z",mcstyle,S=1.0,U=45,X=-1.0,Y=0],-2.0

The result is shown in Pic_2.

 

If you need the Z rotated in the other direction, Type U=-45. 

I hope now you see where you can refine the settings until you get the look you want.

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 11 of 11

Anonymous
Not applicable

Thank you so much for the assistance. Bit more messing and I now have exactly what I wanted. 

Every days a school day.

 

Regards

 

Colin

0 Likes