AutoCAD- custom lin

  1. Open LIN saved in ASCII format file (for example, Windows® Notepad or the Mac OS® in TextEdit) in a text editor.
  2. Create a header line that includes an asterisk and a linear pattern name. Linear pattern name can contain up to 31 characters.

    E.g,

    *BORDER
  3. (Optional) To include a description in the header line, please back-line type pattern name with a comma and description text.

    E.g,

    *BORDER,Border __ __ . __ __ . __ __ . __ __ . __ __ .
  4. Creating following rules descriptor line:

    E.g,

    A,.5,-.25,.5,-.25,0,-.25
    • All line must be crossed in order to begin with.
    • Enter zero points.
    • Enter negative real numbers for spaces. This value is defined in units of length of the space pattern.
    • Chain line represents a positive real number input. This value is defined in units of length of the dash pattern.
    • Each point separated by a comma, dash, or space value.
    • Use a space between the dot and dash line.
  5. Illustrator

code show as below:

*V,V -- V -- V -- V --
A,1,-0.2,["V",STANDARD,S=1,R=0.0,X=0.0,Y=-0.5],-0.854

FIG real follows (linear global ratio of 1):

The following items should be noted:

  1. You can use the linear shape of letters
  2. S represents a scaling font style (which may be used to control the height), R representative of the rotation angle, X representative of the lateral offset, Y offset longitudinally representatives
  3. X offset prevail in alphabetical left, Y offset below in alphabetical prevail.
  4. After the pen length greater than the width of the letter to the letter, otherwise it will cause the line drawn on the letter of the phenomenon.
  5. There are three ways of rotation, R, U, A.

 Part not described in detail, reference text:

Character Descriptor Format

Adding text characters linetype description format is as follows:

["text_string",text_style_name,scale,rotation,xoffset,yoffset]

Scale, rotation, X and Y offsets values ​​to be represented as a signed decimal number, for example, 1, -17, and 0.01.

Text string

Character appears to be online type.

Text style name

Text style name to be used. If no text style is specified, the currently defined style.

Note: Embedded text characters are associated with graphics in text style. Before loading line, the drawing must be present in the text style associated with the line.

proportion

To be used for scaling text style associated with proportional linear. Scale factor S = must be provided as a prefix, for example, the scale factor S = .5 expressed as 0.5. The height of the text style is multiplied by a scaling factor. If the height of the text style is 0 (zero), the value of S = value alone as height.

Rotation

The rotation angle of the character that appears to be online type. Rotation angle must be prefixed with U =, R =, or A =.

  • U = specifies upright or easy-to-read text.
  • R = specifies relative rotation tangential or linear.
  • A = specify the text relative to the origin of the absolute rotation; that is, all characters regardless of their position with respect to the straight line, are the same rotation.

This value can be added behind

  • d degrees (degrees is the default)
  • r for radians
  • g for grads

FIG using the line defined by an upright rotation.

If rotation is omitted, 0 relative rotation. Rotation is performed around a midpoint between the baseline and the nominal cap height.

Note: If you do not use graphics containing the U (upright) rotation flag of the traditional linear, you can reload line from LIN file, updated to the latest linetype definition. It may be the U (upright) flag prior to reloading a line defined by the R (rotation) flag changes to update the custom line.

X Offset

Text line type X moves linearly along the axial direction. Offset must be provided with the prefix X =, e.g., X = .1 0.1 represents the offset. If the offset or offset is 0 (zero) is omitted, the text will not be shifted. Using this field and the previous pen control character or the distance between the pen-down stroke. This value can not be S = value defined scaling is scaled, it may be scaled according to the linear.

Y Offset

Text line type Y -axis direction perpendicular to the straight line. Must be provided with the prefix offset Y =, for example, represents the offset Y = .1 0.1. If the offset or offset is 0 (zero) is omitted, the text will not be shifted. This field is used to control vertical line with respect to the text alignment. This value can not be S = value defined scaling is scaled, it may be scaled according to the linear.

About custom linear in shape

Complex line shape can contain embedded (stored in file form). Complex line can denote utilities, boundaries and contours, and so on.

Simple linear as possible to dynamically draw complex line after a specified endpoint. Linear shape and embedded text objects are always displayed completely is never cut off.

Linear pattern comprising a shape descriptor of the object with a simple linear pattern similar descriptors.

Shaped line of the object descriptors described in the following syntax:

[shape_name,shape_filename] or [shape_name,shape_filename,transform]

Wherein, Transform is optional and can be any sequence of the following equation (both with a comma before each equation):

R = ## relative rotational

A = ## absolute rotation

U = ## upright rotation

S = ## ratio

## = X- X- offset

## = the Y the Y Offset

In this syntax, ## represents a decimal number (e.g., 1, -17,0.01 etc.) signed, the rotation in degrees, other options are units of a linear proportion of the unit pattern. Above transform letters, later use and must be followed by an equal sign values.

The following definitions are used to define a linear line named CON1LINE, which consists of a straight line segment, a space, and from "ep.shx" embedded shape files CON1 this repeating pattern configuration. (Note that you must be "ep.shx" file in the support path for the following example running.)

*CON1LINE, --- [CON1] --- [CON1] --- [CON1]
A,1.0,-0.25,[CON1,ep.shx],-1.0

In addition to the code in brackets, everything is consistent with the definition of a simple linear.

As described above, a total of six fields can be used as part of a linear shape definition. The first two are required, a fixed position; the four are optional and can be ordered. The following two examples show the different shape definition field entries.

[CAP,ep.shx,S=2,R=10,X=0.5]

The code for the type defined in shape files ep.shx CAP transformed. Prior to transformation into effect, the magnify the shape, tangential to the rotary 10 degrees in a counterclockwise direction, and along the X translational direction 0.5 drawing units.

[DIP8, pd.shx, X = 0.5, Y = 1, R = 0, S = 1]

The code for the type defined in shape files pd.shx DIP8 transformed. Prior to transformation into effect, the shape in X translational direction pattern units 0.5, along Y shifting a pattern unit in a direction, without rotation, and held equal to the size of the prototype.

Character Descriptor Format

DESCRIPTION added to the linear-shaped format is as follows:

[shape_name,shape_filename,scale,rotate,xoffset,yoffset]

Scale, rotation, X and Y offsets values ​​to be represented as a signed decimal number, for example, 1, -17, and 0.01.

Form name

The name of the shape to be drawn. This field must contain. If omitted, the line failure is defined. If there is no file in the specified shape pattern name , the line will be loaded and used, but not the embedded shape.

Type the file name

Compiled shape definition name (SHX) file. If omitted, the line failure is defined. If the shape file name is non-defined (i.e., no path), the path support program searches for the file. If you type the file name is fully qualified and not found at the location of the file, then the path will be deleted, and support path to the program searches for the file. If the file is not found, the line will be loaded and used, but not the embedded shape.

proportion

Scaling factor to be used for shape, the internal shape defined proportion of it will multiplied. Scale factor must be provided with a prefix S =, e.g., S = .5 indicates scale factor 0.5. If the proportion of the internal shape defined for 0, = S value will be used alone as the scale.

Rotation

To display the type of the rotation angle of line-shaped. Rotation angle must be prefixed with U =, R =, or A =.

  • U = specifies upright or easy-to-read text.
  • R = specifies relative rotation tangential or linear.
  • A = specify the text relative to the origin of the absolute rotation; that is, all characters regardless of their position with respect to the straight line, are the same rotation.

This value can be added behind

  • d degrees (degrees is the default)
  • r for radians
  • g for grads

Note: If you do not use graphics containing the U (upright) rotation flag of the traditional linear, you can reload line from LIN file, updated to the latest linetype definition. It may be the U (upright) flag prior to reloading a line defined by the R (rotation) flag changes to update the custom line.

X Offset

For the amorphous phase in the apex end of the line defined X movement made by the direction of the axis. Offset must be provided with the prefix X =, e.g., X = .1 0.1 represents the offset. If the offset or offset is 0 (zero) is omitted, the shape will not be shifted. To obtain a continuous line with shapes, use this field. This value is not scaled by S = value defined by the scale factor.

Y Offset

For the amorphous phase in the apex line defines the end Y moves in the axial direction made. Must be provided with the prefix offset Y =, for example, represents the offset Y = .1 0.1. If the offset or offset is 0 (zero) is omitted, the shape will not be shifted. To obtain a continuous line with shapes, use this field. This value is not scaled by S = value defined by the scale factor.

   

 

Guess you like

Origin blog.csdn.net/xinlan3618/article/details/93617418