Question:
How to create a standard linetype (.lin) file? what's the meaning of the content in this file?
Answer:
First let us see some examples, for your references,
For one standard linetype format, it has two lines.
The first is the header line: consists of a line type name and a line type description. The title line is marked with "*" as the start, and the line type name and description are separated by commas.
The second line is mode line: consists of alignment code and line type specification, separated by commas, and its format is: alignment code, line specification...
What's complicated is in the mode line,For example: A,12.7,-6.35,0,-6.35,"A" means that the line type is justification, almost all linetypes use this justification.
12.7 indicates a dash of 12.7 units long,
-6.35 indicates a space of 6.35 length,
and 0 indicates a point.
let us see some more complicated examples,
*W11_line,w11. line ----W11----W11----W11----W11----W11----W11--
A,.5,-.2,["W11",STANDARD,S=.1,R=0.0,X=-0.1,Y=-.05],-.25
*W1_LINE,W1 line ----W1----W1----W1----W1----W1----W1--
A,.5,-.2,["W1",STANDARD,S=.1,R=0.0,X=-0.1,Y=-.05],-.25
For more complicated linetype, like using some unique text in the linetype.
["W11",STANDARD,S=.1,A=0.0,R=0.0,X=-0.1,Y=-.05]
"W11": The embedded text must be enclosed in double quotes.
STANDARD: The name of the text style used to embed the text.
R: The angle of inclination of the embedded text relative to the direction of the line.
A: The angle of inclination of the embedded text relative to the positive X-axis in the WCS coordinate system.
S: The scale factor of the embedded text.
X: The offset of the embedded text in the direction of the line.
Y: The offset of the embedded text in the vertical direction of the line drawing direction.