Creating complex linetypes (*.lin files)
Creating complex linetypes (*.lin files)
(OP)
Hello,
In AUTOCAD2000, there are several linetypes you can use:
included in files acad.lin and acadiso.lin .
But I would like to use some complex linetypes which are not included in these files.
How could I create other linetypes in order for them to be used in drawing ?
I suppose It means creating a new *.lin file, but how creating this file ?
In AUTOCAD2000, there are several linetypes you can use:
included in files acad.lin and acadiso.lin .
But I would like to use some complex linetypes which are not included in these files.
How could I create other linetypes in order for them to be used in drawing ?
I suppose It means creating a new *.lin file, but how creating this file ?





RE: Creating complex linetypes (*.lin files)
The more complex "linestyles" use a combination "LIN" & "SHX".
As you know, the SHX files are shapes, usually associated to fonts. But they are also used with linestyles.
I haven't figured out how the LIN files link the SHX files to specific linestyles. It might be linked with a LISP routine or some text in the actual LIN files that calls out the SHX file. Although I haven't seen it.
Hopefully someone else here will have better insight.
Rich
RE: Creating complex linetypes (*.lin files)
RE: Creating complex linetypes (*.lin files)
This may help if you are set on it:
http://www.mossdesigns.com/custltp2.htm
RE: Creating complex linetypes (*.lin files)
Open Acad.lin with Notepad, and take a look at the syntax.
Each linetype is a 2 line definition.
Take the Center line for an example:-
*CENTER,Center ____ _ ____ _ ____ _ ____ _ ____ _ ____
A,1.25,-.25,.25,-.25
Line 1. The Linetype name Definition.
Preceded by an asterisk, followed by the name in CAPS, the Upper/Lower case version, followed by a series of dashes or Underscores to visually simulate what the line looks like.
This is what you see in the DLL when you pick a line type.
Line 2. The true Line Length Definition.
Precede by "A", followed by the real numeric length of the repeat pattern, each seperated by a comma (,) delimiter.
Note: NO SPACES!).
Think of it as an old style Pen Plotter with Pen going up and down and paper moving below at a steady rate. Values preceeded with NO sign (+ implied) mean Pen DOWN for that length of travel. Those preceded by a minus (-) means Pen UP for that length of travel.
Dots are denoted by a (numeric) "0".
Want a Center line that begins with a 1/8 dash followed by a 2" line then 2 dots, with 1/8 spaces between and call it Di-Dah-Dot-Dot?
Line 1 would read:
*DI-DAH-DOT-DOT,Di-Dah-Dot-Dot _ _________ . .
Line 2 would read:-
A,0.125,-0.125,2.00,-0.125,0,-0.125,0,-0.125
Note that you must define the last space before the defined pattern begins again.
Good luck.
Jack.
RE: Creating complex linetypes (*.lin files)
Brian