Online-help

Line type Editor

Line type Editor

Edit Linetype

In the Linetype Manager you can edit the selected line type or create a new one using the built-in Linetype Editor:

 

Parameters:

Description of line types

Description of line types is shown.

Buttons

 

Add dash

Adds a new element to the line.

 

Delete dash

Deletes an element from the line.

 

Move dash up

Moves one element up.

 

Move dash down

Moves one element down.

 

Elements are selected in the Common section.

There are the following options in the drop-down list:

·         Dash

·         Text

·         Shape

An element’s value is shown in the Geometry section.

 

To edit a line type:

     

1.    Select a line type in the Linetype Manager.

2.    Click the  Edit linetype button to start the built-in Linetype Editor. There is a description of the selected line type in the Dashes field:

3.    Select an element and enter its new value in the Length field of the Geometry section.

note: When you specify a positive value, a dash is drawn, when you specify a negative value, a space is drawn, when a value is zero a point is drawn.

 

note: The length of the first element must be greater than or equal to zero, i.e. the dash or point must be drawn first.

 

4.    To display a new value, press ENTER or just click.

5.    To add a new element, click the  Add dash button. A new element is added to the end of the list and a zero value is assigned to it by default.

6.    Specify a new value for an added element in the Length field of the Geometry section. To display a new value press ENTER.

7.    Click OK to close the Edit Linetype dialog box.

8.    Click OK to close the Linetype Manger dialog box.

To add text to a description of a line type:

     

1.    In the Type field select the Text option:

2.    In the Style field of the Text section, select a text style from the drop-down list. In the Text field enter symbols, specify parameters in the Geometry section:

3.    Click OK to close the Edit Linetype dialog box.

4.    Click OK to close the Linetype Manger dialog box.

To add a shape to a description of a line type:

     

1.    In the Type field select the Shape option:

2.    Select a shape name from the drop-down list in the Name field and a shape file in the File field of the Shape section. Specify required parameters in the Geometry section:

3.    Click OK to close the Edit Linetype dialog box.

4.    Click OK to close the Linetype Manger dialog box.

Creation of a new line type

A new line type is created on the base of an existing one:

     

1.    In the Linetype Manager select a line type.

2.    Click the  New linetype button. The new row has a default name – Linetype1 appears.

3.    Click Linetype1 and enter a new name.

4.    In the Description field enter information about the line type.

5.    Click the  Edit linetype button.

6.    Change the parameters in the Edit Linetype dialog box.

7.    Click OK to close the Edit Linetype dialog box.

8.    Click OK to close the Linetype Manager dialog box.

Brief description of the procedure for creating custom linetypes

You can view and, if necessary, edit the content of GOST 2.303-68.lin file in any text editor that saves data in ASCII format:

;;

;; linetypes by GOST 2.303-68

;; 

 

*GOST2.303 3,Solid wavy ~~~~~~~~~~~~~~~~~~~

A,0.001,[WAVE,GOST 2.303-68.shx],-26

*GOST2.303 4,Dashed __ __ __ __ __ __ __ __ __

A,5,-2,0

*GOST2.303 5,Dash-dot thin ____ _ ____ _ ____ _ ____ _

A,20,-1.5,1,-1.5

*GOST2.303 6,Dash-dot theckened ___ _ ___ _ ___ _ ___ _ ___ _ ___

A,8,-1.5,1,-1.5

*GOST2.303 8,Solid thin kinks ---'\---'\---'\---'\---'\---

A,40,[BREAK,GOST 2.303-68.shx],-8

*GOST2.303 9,Dash-dot with two dots __..__..__..__..__..__..__..__.._

A,20,-1.5,1,-1.5,1,-1.5

Lines that start with a semicolon (;) character are comments.

Description of a linetype consists of 2 lines: the first line contains the linetype name and a short description, the second line specifies the linetype outline.

*GOST2.303 5,Dash-dot thin ____ _ ____ _ ____ _ ____ _

A,20,-1.5,1,-1.5

An asterisk is placed before the linetype name. The name should be unique.

*GOST2.303 5

The linetype name is separated from a short description by a comma.

*GOST2.303 5,Dash-dot thin ____ _ ____ _ ____ _ ____ _

A brief description consists of a text part explaining the purpose of the linetype (for example, the explanation Dash-dot can be changed to the following: To draw center lines). The description often includes a sequence of text characters (dashes, spaces, dots, etc.) that visually resembles this line. The description can be up to 47 characters long. The description is optional and can be omitted. If there is no description, no comma is placed after the linetype name.

The second line containing the linetype description begins with the character А, which defines the type of alignment.

Further, separated by commas (without spaces), write the linetype elements that specify the line style.

A,20,-1.5,1,-1.5

As elements of the linetype outline, the following can be used:

·         zero – specifies a dot construction;

·         positive decimal numbers – specify the construction of dashes (a number value determines the dash length in drawing units);

·         negative decimal numbers – specify the construction of spaces (a number value determines the space length in drawing units);

·         text objects;

·         embedded shapes stored in form files.

Linetypes described by dashes, dots and spaces are called simple. The complex linetypes include the ones described by text objects and embedded shapes. Linetypes that include text objects and embedded shapes are used in utility network signs, in topographic symbols, and so on.

In the GOST 2.303-68.lin file the linestypes *GOST2.303 4, *GOST2.303 5, *GOST2.303 6 and *GOST2.303 9 are simple, the linetypes *GOST2.303 3 and *GOST2.303 8 are complex, because their descriptions use the embedded shapes WAVE and BREAK.

Alignment type А determines the condition according to which lines should begin and end with dashes, i.е. the value that determines the length of the first segment of the line should be greater than or equal to zero.

In order to better understand what alignment is and how it works, consider an example of drawing a line segment from point 1 to point 2 using Dash-Dot linetype. The program will construct a segment in such a way that it starts at point 1 and ends at point 2 with dashes. If necessary, the first and last dashes can be lengthened to meet the alignment condition. For a short segment, if it does not contain even one link long_dash-space-short_dash-space, the program will draw one dash (continuous line).

The linetype description line should not exceed 80 characters.

For each linetype it is possible to define no more than 12 elements.

In the linetype description, it is enough to specify one repeating fragment (link). For example, for the Dash-dot linetype such fragment is the link long_dash-space-short_dash-space.

The format for determining a simple linetype is:

А,Length1,Length2,Length2,…

Text objects are generally described in a complex linetype definition in the following format:

[”Text”,Style,Scale,Rotation_angle,Offset_X,Offset_Y]

The format for writing the embedded shape in the definition of a complex linetype:

[Name,File]

or

[Name,File,Scale,Rotation_angle,Absolute_rotation,Offset_Х,Offset_Y]

Parameters:

Option

Brief information about the option

Value examples

Length

The length of dash or space in drawing units.

Info: NanoCAD is a user friendly, cheap, and yet powerful, CAD software tool for Windows, that allows an outstanding user experience by providing top-level performance, full capability, a classic interface and native.dwg format support. nanoCAD has been built to deliver design and project documentation for all industrial purposes. nanoCAD includes a full suite of basic and advanced CAD tools for 2D/3D design and creating industry-standard DWG-compatible CAD files. Our program ensures creative, collaborative and customizable features to boost your efficiency, and includes several API's, allowing anything from routine task automation to complex CAD app development. You may download nanoCad for free, using the links below, and buy later, in case you like it.
We collect Cookies
We use cookies to ensure that we give you the best experience on our website. By clicking “Accept”, you agree to our website’s cookie use as described in our Privacy Statement.