A linetype is a repeating pattern of dashes, dots, and blank spaces. A complex linetype is a repeating pattern of symbols. To use a linetype you must first load it into your drawing. A linetype definition must exist in a LIN library file before a linetype can be loaded into a drawing. To load a linetype into your drawing, use the Load method.
For more information about working with linetypes, see â€śOverview of Linetypesâ€ť in the User's Guide.
This example attempts to load the linetype â€śCENTERâ€ť from the acad.lin file. If the linetype already exists, or the file does not exist, then a message is displayed.
On Error GoTo ERRORHANDLER
Dim linetypeName As String
linetypeName = "CENTER"
' Load "CENTER" line type from acad.lin file
ThisDrawing.Linetypes.Load linetypeName, "acad.lin"