|
TPC's line type syntax is composed of [CODE][VALUE] pairs that define the elements of the line type.
•A line type can have any number of code/value pairs.
•Each code pair defines an ELEMENT of the line type. A dashed line for example, has at least two ELEMENTS, one for the dash and one for the space between the dashes.
•A CODE must be one of the following codes, text or a block pathname.
•All VALUEs are in 100th of an inch and define the length and size of their line element.
Syntax Example
Here is the definition for the DashDot line type with the syntax highlighted.
DashDot,_12 6_2 6,__ . __ . __,DASHDOT,4
The [CODE][VALUE] pairs are
_12 = draw a line 12 100ths of an inch
space 6 = leave a space 6 100ths of an inch
_2 = draw a line 2 100ths of an inch
space 6 = leave a space 6 100ths of an inch
CODE
Here are the line type syntax codes TPC supports, along with their value definitions.
_ or .
Draw a line of VALUE = length
=
Draw a split line of VALUE = length
SPACE
Draw a space of VALUE = length
+,\,X
Draw a tick, slash or X, VALUE = height
<,>
Draw angled brackets, VALUE = height
[,]
Draw square brackets, VALUE = height
^
Draw an arrow in the direction of the line, VALUE = height
"text"
Draw this text (left justified), VALUE = height
'text'
Draw this text (centered), VALUE = height
"filename.dxf"
Draw this symbol (left justified), VALUE = height
'filename.dxf'
Draw this symbol (centered), VALUE = height
~ (tilde)
Rotation, VALUE = text or symbol rotation in degrees +=CW or -=CCW
*
Bit flags, VALUE = or'd flags
1 = use line width to draw embedded block. if not set, blocks are drawn with width = 0.01"
` (on keyboard below tilde)
Don't draw line from last symbol to the end of the line
Changing Block Line Width
Lets look at an example of how we would change the line width of the embedded block in a line type like Wood Fence, that includes a rectangle.
The Fence Wood line type draws the embedded block at the default line width 0.01". The Fence Wood_W line type draws the embedded block at the same line width as the line itself.

Here are the two line type definitions. Notice that Fence Wood_W includes *1 after the the size of the embedded block of 10. The *1 adds a bit flag telling TPC to use the line width to draw the lines in the embedded block.
We've also changed the description of the line, shown in the pull down list along with the line name, from ___Square___ to ___SquareW__ to remind our self that the embedded square block gets drawn with the line Width also. Changing this description does not affect how the line type gets drawn.
Fence Wood,_100 5'Point Symbols\catch basin.dxf'10 5_100,_____ Square ____ Square ____,,77
Fence Wood_W,_100 5'Point Symbols\catch basin.dxf'10*1 5_100,_____ SquareW ____ SquareW ____,
Filling Blocks
To include a filled block in a line type, you must fill the block with other objects like lines or polylines. Think of it as 'sketching in' the fill.
There are two exceptions to this:
1.If the block you are using has just one filled object TPC will use the fill from that object to fill the line type and you will get a filled block.
2.Filled circles are always filled, regardless of how many objects are in the block.
Related Topics
Line Types Line Type Names Program Data folder
Editions
Personal, Premium, Professional
|