Line type Editor

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:

  • Select a line type in the Linetype Manager.
  • 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:
  • 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.

  • To display a new value, press ENTER or just click.
  • 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.
  • Specify a new value for an added element in the Length field of the Geometry section. To display a new value press ENTER.
  • Click OK to close the Edit Linetype dialog box.
  • Click OK to close the Linetype Manger dialog box.

To add text to a description of a line type:

  • In the Type field select the Text option:
  • 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:
  • Click OK to close the Edit Linetype dialog box.
  • Click OK to close the Linetype Manger dialog box.

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

  • In the Type field select the Shape option:
  • 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:
  • Click OK to close the Edit Linetype dialog box.
  • 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:

  • In the Linetype Manager select a line type.
  • Click the New linetype button. The new row has a default name – Linetype1 appears.
  • Click Linetype1 and enter a new name.
  • In the Description field enter information about the line type.
  • Click the Edit linetype button.
  • Change the parameters in the Edit Linetype dialog box.
  • Click OK to close the Edit Linetype dialog box.
  • 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. Values can be positive or negative numbers:
20, -1.5, 0.001
Value 0 – constructing a point.
Text Text symbols used in a complex line.
The option is used to describe a text object.
Any set of text symbols: C, D, UK, W1, K1.
Style The name of a text style.
The option is used to describe a text object.
The default style is Standard
A style is available for selection in the drop-down list GOST 2.304
Name Shape name. The option is used to describe an embedded shape.
Mandatory parameter – if it is absent, the linetype is not defined.
If there is no from in the specified file (File option), the line is constructed without a shape.
WAVE, BREAK, LINE FEED
File The name of compiled (*.shx) rile containing a shape definition.
The option is used to describe an embedded shape.
Mandatory parameter – if it is absent, the linetype is not defined.
Is there is no form file, a line is drawn without a shape.
GOST 2.303-68.shx
Scale The scale factor by which the height of the text style or the original height of the shape is multiplied.
The format of the entry in the linetype description: S=value.
If the height of the text style or the initial height of the shape are equal to 0, then the specified value of the S = parameter is used as the height.
S=3, S=0.1, S=.1
Rotation angle The angle of rotation of a text object or embedded shape relative to the line direction.
The format of the entry in the linetype description: R=value.
It is allowed not to specify the parameter, in this case its value is assumed to be 0.
R=0, R=30, R=-90
Absolute rotation angle The angle of rotation of a text object or embedded shape relative to the coordinate origin, i.e. all text objects or all shapes rotate the same regardless of their position relative to the line.
The format of the entry in the linetype description: A=value.
It is allowed not to specify the parameter, in this case its value is assumed to be 0.
A=0, A=45, A=-30
Offset by X The offset of a text object or embedded shape by X axis directed along the line.
The format of the entry in the linetype description: X=value.
The parameter X=0 is set when describing a continuous line containing text objects or embedded shapes.
It is allowed not to specify the parameter, in this case its value is assumed to be 0.
The parameter S= does not affect the X offset.
X=5, X=-2.5, X=0.01
Offset by Y The offset of a text object or embedded shape by Y axis perpendicular to the line.
The format of the entry in the linetype description: Y=value.
The parameter Y=0 is set when describing a complex line containing text objects or embedded shapes without offset by Y.
It is allowed not to specify the parameter, in this case its value is assumed to be 0.
The parameter S= does not affect the Y offset.
Y=0.01, Y=-3.5, Y=7

Linetypes examples:

1. Definition of a simple linetype Dash-dot thin:

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

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

specifies the construction of a line that starts with a dash of 20 drawing units length followed by a space of 1.5 drawing units, then a dash of 1 drawing unit is built, then again a space of 1.5 units. This fragment (link) is repeated throughout the segment, ending at the end point with a dash of 20 drawing units:


2. Definition of a complex linetype Funny, containing text symbols 8 and ):

*Funny,Example of a custom linetype

A,10,-10,0.001,[“8)”,Standard,S=5,R=-90,X=-3,Y=3],-10%


3. Definition of a complex linetype Arrow1 containing text symbols < and >:

*Arrow1,Single arrow

A,0.001,[“<”,Standard,S=5,Y=-2.5],25,[“>”,Standard,S=5,X=-2.5,Y=-2.5],-20%


4. Definition of a complex linetype Arrow2 containing text symbols < and >:

*Arrow2,Double arrow

A,0.001,[“<”,Standard,S=5,Y=-2.5],0,[“<”,Standard,S=5,X=3,Y=-2.5],25,

[“>”,Standard,S=5,X=-2.5,Y=-2.5],0,[“>”,Standard,S=5,X=-5.5,Y=-2.5],-20%


5. Definition of a complex linetype GOST2.303 8 containing the embedded shape BREACK:

*GOST2.303 8,Continuous jogged line —-’\—-’\—-’\—-’\—-’\—-

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

6. Definition of a complex linetype A1 containing an embedded shape LEG_SIGN1:

*A1,Example of a custom linetype

A,10,-20,0,[LEG_SIGN1,CS_Gost2304.shx,S=5,R=180,X=-5.5,Y=2.5]%

7. Definition of a complex linetype Dashed 14-4 containing embedded shapes ARROWFILL, CIRCLEFILL_IN and CIRCLEFILL_OUT !(center) :

*Dashed 14-4,Dashed line. under linear object <|—-O—-|>

A,0.01,0,[ARROWFILL,styles.shx,S=0.1,R=180,X=0.7],7,0,[CIRCLEFILL_IN,styles.shx,

S=0.1],0,[CIRCLEFILL_OUT,styles.shx,S=0.1],7,0,[ARROWFILL,styles.shx,S=0.1,X=-0.7],-4%

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.

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment