How to Create Custom Linetype

July 24, 2012

One of the commonly encountered problems is that the linetypes provided by CAD software can’t satisfy various demands in  CAD Design. In order to make the design work easier, I will talk about how to create custom linetype in ZWCAD in today’s        CAD topic,

To create the custom linetype, let’s start with the rules in customization.

In the ZWCAD, we can find a zwcad.lin file in C:\Users\[username]\AppData\Roaming\ZWSoft\ZWCAD\2012\en-US\Support . Open the file by Notepad, and the linetypes provided by CAD have been listed.

Custom Linetype

                          *BORDER,Border __ __ . __ __ . __ __ . __ __ . __ __ .

A, 12.700, -6.350, 12.700, -6.350, 0, -6.350

 The linetype definition is composed of two parts. The first part is name and description for the particular line. Start the definition with “*”, then we could name the line. Leave a simple description after the comma. Specify the codes of lines in the second part. “A “ stands for alignment. The first parameter value should be equal to or more than “0”. The second parameter value should be less than “0”. Positive value means drawing a straight line with certain length. “0” means draw a point. Negative value means space. The punctuation after codes should be input with half-width.

Let’s take the center line as an example. The source code for which is A,1.250,-0.25,0.25,-0.25,According to the definition rules stated above, it means drawing a line with length of 1.25, ‘-0.25’ means a space with length of 0.25, ‘0.25’ means a line with length of 0.25.

   Custom Linetype   

If you are still not so clear about how to customize the linetype, you could draw the line first. Here is an example for double dot dash line. Let’s see how it’s defined.

Custom Linetype

Open the file zwcad.lin in ZWCAD installation path. And enter the name of this linetype as “double dots”. The source code for the line should be

 *DOUBLE_DOT,double_dot  ______..______..______


Save the file after we add the source code.

Custom Linetype

With the same method, we could customize the linetype in design.


You may like more about “linetype” on CAD forum:

1.       Why the curved line break into straight line segments?

2.      Create Linetype with texts

3.       Linetype and linetype scale

4.      How to get the dot linetype spaced?

5.      Linetypes for dot drawings

6. How do I create a linetype with shapes

PrintPrint Get a PDF version of this webpage PDF

© 2018 ZWCAD Software Co., Ltd. All rights reserved. Privacy Policy. Site Map

All other trademarks cited herein are the property of their respective owners.