Linetype File Syntax

#1
Hi,
I would like to create versions of existing linetypes in the icad.lin file.

1) Which controls, the shown example or the line of code below the name/example line? Or do they work with each other?

2) What is the syntax of the line of code? (I have a guess, but I'd like to hear from those with more knowledge on the subject than me LOL)

Thank you,
Su
Mrs. Su Leone, P.L.S.
Survey CAD Technician

Re: Linetype File Syntax

#2
Hi Su,

In the icad.lin file, both the shown example (visual representation) and the line of code below the name/example work togethersnow rider 3d The visual representation helps you understand how the linetype will appear, while the line of code defines the actual parameters and properties of the linetype.

The syntax for a linetype definition in the .lin file generally looks like this:

Code: Select all

*<LinetypeName>, <Description>
A,<Pattern>,<Spacing>,...
Here’s a breakdown of the components:

*<LinetypeName>: The name of the linetype.
<Description>: A brief description of the linetype.
A, <Pattern>, <Spacing>, ...: Defines the pattern of the linetype. A stands for "Line" or "Arc" segment. The <Pattern> is a series of values where each value represents a length of a line or space in the linetype pattern.
For example:

Code: Select all

*DASHED, Dashed line
A,1,-0.5, 0.5,-0.5
This defines a dashed line with a pattern where each dash is 1 unit long, separated by a space of 0.5 units.

Re: Linetype File Syntax

#3
When working with the icad.lin file (or any LIN file) to create custom linetypes in CAD software like IntelliCAD, AutoCAD, or others, the format and the way the linetypes are defined are crucial. Here's how it works:

Understanding the LIN File Structure
A LIN file defines linetypes using slice master two lines per linetype:
  • Name/Description Line: This line starts with an asterisk (*) followed by the linetype name and a description.
  • Pattern Definition Line: This line contains the code that defines the pattern, specifying the lengths of dashes, gaps, and dots.
cron