custom linetype help

custom linetype help

MKH-VB
Collaborator Collaborator
398 Views
11 Replies
Message 1 of 12

custom linetype help

MKH-VB
Collaborator
Collaborator

I am trying to create a ROW linetype with the text in the middle of the longer dash

 

*ROWphanton,ROW with dashes ___ _ _ ___ _ _ ___ _ _ ___ _ _
A,.625,-.125,.125,-.125,.125,-.125,-0.02,["ROW",TEXTSTYLE,S=0.08,R=0.000,X=0.000,Y=-0.035],-0.30

 

I've attached an image of what this definition looks line now. Can anyone help me out? Thanks

 

rowlinetype.png

mkh
0 Likes
Accepted solutions (1)
399 Views
11 Replies
Replies (11)
Message 2 of 12

sigmmadesigner
Advocate
Advocate

Try it!

*ROWphanton,ROWs ___ _ _ _ _ _ _
A,0.625,-0.125,0.125,-0.125,-0.125,-0.02,["ROW",STANDARD,S=0.08,R=0.0,X=0.0,Y=-0.035],-0.30

0.625 → largest continuous segment

-0.125 → space

0.125, -0.125, 0.125, -0.125 → three short dashes separated by spaces

-0.02 → space before text

["ROW",STANDARD,...] → "ROW" text with STANDARD style

S=0.08 → text height

R=0.0 → rotation

X=0.0, Y=-0.035 → position adjustment

-0.30 → space after text

0 Likes
Message 3 of 12

MKH-VB
Collaborator
Collaborator

thanks..I'll give it a go.

 

 

mkh
0 Likes
Message 4 of 12

Kent1Cooper
Consultant
Consultant

@MKH-VB wrote:

I am trying to create a ROW linetype with the text in the middle of the longer dash


Just to be sure I understand, does that description mean this?

Kent1Cooper_0-1749662096983.png

including having the longer dash running through the Text?

[By the way, the zero before the decimal point is not needed for values less than one, as you have it in some but not all places.  And zero is zero without any decimal -- R=0.000 can be simplified not only a little to R=0.0, but all the way down to R=0 only.]

Kent Cooper, AIA
0 Likes
Message 5 of 12

Kent1Cooper
Consultant
Consultant

@Kent1Cooper wrote:
Just to be sure I understand, does that description mean this?

Kent1Cooper_0-1749662096983.png

including having the longer dash running through the Text?

....


On the assumption [if you're still watching] that the answer to that question is Yes:

Kent1Cooper_0-1749747988900.png

[The definition in Message 2 makes the green parts.]  The yellow parts were made with this definition:

A,.125,-.125,.3125,["ROW",STANDARD,S=.08,X=-.13,Y=-.04],.3125,-.125,.125,-.125

["STANDARD" text Style is defined for Arial Italic without fixed height.  Use your appropriate Style name.]

No R entry -- if it's zero, you can just omit it.  Consider using the U option instead, for more upright text regardless of drawn direction.

The longer dash is actually in two touching pieces, with the text "between" them.  The negative X value [fine-tune the number for the length of the text] "backs off" the starting point of the text inclusion by half the text length in the back-off from the direction the path is headed at that point, which makes for better alignment along curves [compare those in the yellow Arc to the one in the green Arc].

Kent Cooper, AIA
0 Likes
Message 6 of 12

MKH-VB
Collaborator
Collaborator

I'm actually looking for long dash, short dash, short dash, long dash, text. (Basically the phantom autocad linetype with the ROW in it.)   I appreciate all this that you have done.

 

 

mkh
0 Likes
Message 7 of 12

MKH-VB
Collaborator
Collaborator

with the text in a gap, not covered by a line.

 

 

mkh
0 Likes
Message 8 of 12

ronjonp
Advisor
Advisor

@MKH-VB Just use my code to create all the linetypes you'll ever need : ). It will spit out the line definition to the command line if you'd like to put it in a file.

 

*ROW,ROW» --- - - ---ROW--- - - ---ROW--- - - ---ROW--- - - ---
A,0.3,-0.08,0.08,-0.08,0.08,-0.08,0.3,-0.2375,["ROW",Standard,S=0.125,R=0,X=-0.1875,Y=-0.0625],-0.2375

 

ronjonp_0-1749764880169.png

 

0 Likes
Message 9 of 12

MKH-VB
Collaborator
Collaborator

wonderful....I'll give it a spin tomorrow hopefully

 

mkh
0 Likes
Message 10 of 12

Kent1Cooper
Consultant
Consultant
Accepted solution

@MKH-VB wrote:

.... long dash, short dash, short dash, long dash, text. ... with the text in a gap, not covered by a line.


A,.625,-.125,.125,-.125,.125,-.125,.625,-.175,["ROW",STANDARD,S=.08,X=-.13,Y=-.04],-.175

makes:

Kent1Cooper_0-1749815027984.png

That's with your original dash and gap sizes and text height, and with a full long dash on either side of the text -- I assume that's what you meant, but all is adjustable.

Kent Cooper, AIA
0 Likes
Message 11 of 12

MKH-VB
Collaborator
Collaborator

great! I like it, and appreciate your skills.  I can edit from here.

 

M

mkh
0 Likes
Message 12 of 12

ronjonp
Advisor
Advisor

@MKH-VB If your textstyle is a TTF, you might think about adding U=0 to the definition. Then the text will always be upright on the screen:

ronjonp_0-1749825035634.png

 

0 Likes