December 13, 2017
•  Sign Up  for News, Free Symbols and Updates
  Home | Products | 3D Content | 2D Content | Bundles | PowerTools™ | Buy | Gallery | Freebies | News•Resources | Links | Developers | Contact Us
banner ® Click here for a 3Dsymbols® Catalog The Premier Content Site for
CHIEF ARCHITECT® Software
and HOME DESIGNER™ Software
  SEARCH this site:
CARDIFF CONSULTANTS, LIMITED • 1470 First Avenue - Suite 4A, New York, NY 10075  USA • Tel:  212.717.5425  • web@ChiefSymbols.com
ChiefSymbols®
linestyles
To Create Your Own Linestyles for Chief:

Linetype creation requires editing the file "material.dat" in the Chief Architect installation folder (prior to version X1) and the file "legacyLineStyles.dat" in version X1. Make sure to backup these files before changing them and saving the originals somewhere safe in case you make any errors editing.

Linetype definitions follow the AutoCAD® paradigm and consist of two lines:
1. Header line: Contains name and sample of the linetype
2. Data line: Contains information defining the pattern in detail
Parameters which are not recognized by Chief Architect are noted as such, below.

Line 1:

Line 1 looks like this:

*NAME, .. _ . _ .. _ . _ .. _ . _

The components are:

* (Asterisk)
Indicates the start of a new linetype definition. Here, "NAME" is the name of the linetype.

, (Comma)
Separates the name from the description.

Description: A graphical sample of the linetype, in this example: __ . __ ..
This depicts the linetype, up to a maximum of 47 characters

Line 2:

Line 2 contains defining data, and can look like this:

A, .25,-.1,0,-.1,.25,-1,0,0

The components are:

A
Each definition line begins with this character, followed by a comma

.25
Length of a dash when LtScale = 1.0; every linetype data line must begin with a dash.

-.1
Length of a gap when LtScale = 1.0; every linetype data line must follow the initial dash with a gap.

0
A "0" indicates a dot.

-.1
Length of the next gap

0,0
Final two dots in the pattern

The above are the elements of the linetype and they are set forth to the extent necessary to complete the pattern which repeats.

More complicated linetypes may contain letters, numbers, and other characters and shapes. Their definition lines contain more information, as can be seen in the following linetype definition:

Example:

*HOT_WATER_SUPPLY,---- HW ---- HW ---- HW ---- HW ---- HW ----
A,.5,-.2,["HW",STANDARD,S=.1,R=0.0,X=-0.1,Y=-.05],-.2

The first line follows the typical pattern, naming the linetype and depicting a sample of what it will look like. This is a Hot Water Supply line linetype and consists of dashes and the letters "HW".

The definition line contains the usual components, as described above, and also includes components inside square brackets. All the elements are as follows:

A
The mandatory first character, followed by a comma

.5
Length of the initial dash

-.2
Length of the gap following the dash

In brackets is the information defining the text elements which next appear in the linetype:

"HW"
The leading characters, in quotation marks, are the characters to be printed in the linetype

STANDARD
Apply this text style to the text. This is optional.

S=.1
Specifies the text scale factor.
(1) when the text style's height is 0, S defines the height; in this case, 0.1 units
(2) when the text style height parameter is not 0, the text style's height is multiplied by this number. In this example, the text would be displayed at 10% of the height defined in the text style.

The following 4 parameters (R, A, X, and Y) do NOT work in Chief Architect. They are described here as part of the standard AutoCAD paradigm.

R=0.0
Rotates the text relative to the direction of the line; 0.0 means there is no rotation. The default measurement is degrees; use "r" to specify radians, "g" for grads, or "d" for degrees. This parameter is optional and, when omitted, there is no rotation.

A=0.0
Rotates the text relative to the x-axis; this ensures the text is always oriented in the same direction, no matter the orientation of the line at any given point.

X=-0.1
This parameter, measured relative to the linetype scale factor, shifts the text elements of the linetype in the x-direction from the linetype definition vertex, which helps center the text in the line.

Y=-0.05
This parameter, measured relative to the linetype scale factor, shifts the text elements of the linetype in the y-direction from the linetype definition vertex.

-.2
The length of the gap following the text characters "HW"

Again, as many components are included as are needed fully to define the pattern which repeats.

Any line beginning with a semi-colon will be ignored; such lines are used to add comments and other information for the user.

Save the file in Notepad or other text editor; you will need to copy the information into the legacy_linetype.dat file in Chief X1 or into the linetype section at the end of the material.dat file in earlier versions of Chief.

Example:

;This is a comment line to remind me that this linetype is used to define new work
*NEW,New ---- NEW ---- NEW ---- NEW ---- NEW ---- NEW ---- NEW
A,.5,-.2,["NEW",STANDARD,S=.125,R=0.0,X=-0.1,Y=-.05],-.2

   NEW! Add-ons for Outlook from       Say goodbye to archiving problems!