Navigation: Drawings >

Using Drawing Variables

 

 

 

 

Groups can contain text objects that are variables. The word $SCALE in a text object is the variable for the drawing scale. When TPC sees a variable it recognizes, it replaces the variable with the appropriate text.

Variables are used in title blocks, scale bars and other objects that you want to reuse with minor changes.

Variables are preceded by either the $ or the % symbols.


The $ or $$ Symbol

The $ symbol tells TPC to update the variable each time the drawing is regenerated but the symbol is not replaced.

You would use this symbol with the drawing scale to keep the displayed scale current.

The % or %% Symbol

The % symbol is used primarily with blocks and tells TPC to update the variable only when the block is inserted. You might use the % symbol to insert the drawing date in a title block. Once the date is inserted, it doesn't change because the symbol has been replaced.

% vs %% and $ vs $$

Older versions of TPC used just a single character, like % or $, for text that consisted of just that variable.  So you could include the variable $UNITS to include the drawing units in a title block.

In later versions, TPC uses two characters, like %% or $$ and allows you to place the variable anywhere in the text.  So now you could add a text object like, "THIS DRAWING IS IN $$UNITS UNITS." and TPC will replace $$UNITS with the drawing's units.


The following variables are supported

SCALE - current drawing scale.

SCALE2, SCALE3, SCALE4, SCALE8 - current drawing scale x 2, 3, 4 & 8 respectively

SCALE_2 - current drawing scale / 2.

UNITS - units selected in the Drawing Settings, Miscellaneous tab.

SCALEPERINCH - units per inch based on the scale with the units per inch appended (i.e. 100 ft/in).

FILENAME - survey filename without the path (i.e. JOB37.TRV).

PATHNAME - survey filename with the path (i.e. C:\SURVEYS\00\00-37\JOB37.TRV).

DRAWING - drawing name.

JOB - survey job as entered in the survey information dialog.

LOCATION - survey location as entered in the survey information dialog.

CLIENT - survey client as entered in the survey information dialog.

CLIENTADDRESS - survey clients address as entered in the Survey information dialog.

OWNER- survey owner as entered in the survey information dialog.

OWNERADDRESS - survey owner address as entered in the Survey information dialog.

SURVEYNAME - survey name as entered in the survey information dialog.

DATE - today's date.

LICENSE - the license information you enter in the program settings dialog, Miscellaneous page.

YEAR - current year.

SURVEYOR - surveyor as entered in the Surveyor dialog.

LICENSE - surveyor's license number as entered in the Surveyor dialog.

COMPANY - surveyor's company name as entered in the Surveyor dialog.

ADDRESS - surveyor's company address  as entered in the Surveyor dialog.

GRID - Coordinate Reference System, zone and code selected from the Grid dialog.

PROJECTON - projection type associated with this grid (i.e. Lambert, UTM, etc).

DATUM - ellipse data.

DISTANCEFACTOR - distance factor from the Distance Type selected in the Miscellaneous drawing settings dialog. This information is included in the DISTANCETYPE.

THETA - convergence (theta) angle from the Direction Type selected in the Miscellaneous drawing settings dialog. This information is included in the DIRECTIONTYPE.

DISTANCETYPE - A complete description of what distance type is being used. i.e. Ground Distance (project elevation = 1,500')

DIRECTIONTYPE - a complete description of what bearings/azimuths are being used i.e. True Bearing (mean course convergence)

TIME24 - current time in 24-hour format. (i.e. 17:24)

TIME12 - current time in 12-hour format (i.e. 5:24pm)


Related Topics

Using Drawing View
Smart Drawing Objects
Working with Drawing Objects
Drawing Commands

Editions

Personal, Premium, Professional

 

 

 

Copyright © 2024 Traverse PC, Inc.