﻿ How to Create Custom Linetype - ZWCAD Technical Support | CAD Free Support - ZWSOFT.com

## Forum Recent Posts

### Intro to ZWCAD+ Design Center Color issues on PDF plotting Printing from ZWCAD to PDF problems How to print a multi-page PDF from ZWCAD? How to batch Plot to plot files or PDF's? Why the dots only appear on the vertices of polylines? How to Create Custom Linetype How to Draw a Cone with Round Top and Square Bottom Use Polar Tracking in ZWCAD How to Hatch Efficiently in ZWCAD Improvements To Paper Space Creating Boundary Polylines

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.

*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.

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.

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  ______..______..______

A,1.0,-0.1,0,-0.1,0,-0.1

Save the file after we add the source code.

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

Related Questions

Print PDF