Reactive text (RText) objects are displayed the same way normal Text or MText objects are displayed, but the source for the text is either an external text file or the value of a DIESEL expression. You can edit an RText object with the RTEDIT command.
Command: RTEXT
Current text style: STANDARD Text height: 0.2000 Text rotation: 0
Enter an option [Style/Height/Rotation/File/Diesel] <Diesel>: Specify an option
Current text style: STANDARD Text height: 0.2000 Text rotation: 0
Enter an option [Style/Height/Rotation/File/Diesel] <Diesel>: Specify an option
Options
Style
|
Select a text style.
|
Height
|
Specify a text height.
|
Rotation
|
Specify a rotation value.
|
File
|
Use an external text file.
|
Diesel
|
Use DIESEL code.
|
Tip:
Once you have created an RText object with the File option, you can identify the associated text file with the LIST command.
Note:
If a drawing with an RText object is opened on a computer that does not have RTEXT installed, the proxy object that results displays the bounding box of the RText object. If you plan to send your drawing to someone who does not have RTEXT, you can explode the RText objects to MText objects with the EXPLODE command.
You can use an RText object as a file reference to display text, such as a sheet note or a legal disclaimer, that is common to several drawings. You can also use it to display larger bodies of text such as specifications or assembly instructions.
Here are some examples of how RText objects with DIESEL expressions can be used in your drawings.
To display the drawing name:
Drawing file: $(getvar, "dwgname")
Output:
Drawing file: 102-fp12.dwg
To include the directory path with the file name:
Drawing name: $(getvar, "dwgprefix")$(getvar, "dwgname")
Output:
Drawing file: C:\Projects\97-102\Arch\102-fp12.dwg
Note:
If you reference the drawing path or name in a standard title block, it will always display the file name of the drawing, even if the title block appears in an Xref file.
When you plot a drawing, you may want the hard copy to show the date and the time that the plot was created. The following DIESEL expression displays this information in your drawing:
$(edtime, 0, MON DD"," YYYY - H:MMam/pm)
Output:
Mar 22, 2000 - 11:12pm
The $(getprop) DIESEL function
RText supports Drawing Properties through a locally defined $(getprop) DIESEL function. With $(getprop), values from Drawing Properties dialog box tabs can be extracted and displayed in RText objects.
The syntax for the $(getprop) DIESEL function is:
$(getprop, property name)
where property name; can be any of the following fields from the DWGPROPS command:
Title
Subject
Author
Comments
Keywords
LastSavedBy
Revno
Custom Property the name of a custom property
Subject
Author
Comments
Keywords
LastSavedBy
Revno
Custom Property the name of a custom property
For example, if the Drawing Properties for a drawing contains the text "Excavated Site"
is the Subject, the DIESEL expression:
is the Subject, the DIESEL expression:
Subject: $(getprop, subject)
in an RText object will display as:
Subject: Excavated Site
Note:
The $(getprop) DIESEL function is supported only in RText objects. Unlike arguments supplied to other DIESEL functions, arguments to $(getprop) cannot be quoted. Arguments are not case sensitive.
If you have a custom property named "Project Name", the following DIESEL expression will display the value:
Project: $(getprop, %PROJECT NAME)
Note:
Errors in using $(getprop), such as improper syntax or bad arguments, will display (GETPROP ERROR). If a nonexistent custom property name is used, $(getprop) will display an empty string.
The $(xrefs) DIESEL function
RText supports listing Xref files attached to a drawing through the $(xrefs) DIESEL function.
The syntax for the $(xrefs) DIESEL function is:
$(xrefs [, flags [, leader [, trailer]]])
flags
|
A collection of bitflags with the following meanings:
1 = (default) include Xref file name (not exclusive with flag 2)
2 = include Xref block name (not exclusive with flag 1)
4 = don't display file name extension
8 = don't display path
16 = show nesting with additional spacing
|
leader
|
A text string inserted before each Xref entry.
|
trailer
|
A text string appended to each Xref entry except the last.
|
Example:
The RText DIESEL expression:
$(xrefs,3)
displays a list of Xrefs in the following format:
B-ELEC [c:\proj-14\b-elec.dwg]
M-ELEC [c:\proj-14\m-elec.dwg]
R-ELEC [c:\proj-14\r-elec.dwg]
F-ELEC [c:\proj-14\f-elec.dwg]
M-ELEC [c:\proj-14\m-elec.dwg]
R-ELEC [c:\proj-14\r-elec.dwg]
F-ELEC [c:\proj-14\f-elec.dwg]
while the expression:
$(xrefs,2,Includes: )
will list the Xrefs as:
Includes: B-ELEC
Includes: M-ELEC
Includes: R-ELEC
Includes: F-ELEC
Includes: M-ELEC
Includes: R-ELEC
Includes: F-ELEC
The $(images) DIESEL function
RText supports listing images attached to the drawing through the $(images) DIESEL function.
The syntax for the $(images) DIESEL function is:
$(images [, flags [, leader [, trailer]]])
flags
|
A collection of bitflags with the following meanings:
4 = don't display file name extension
8 = don't display path
|
leader
|
A text string inserted before each Image entry.
|
trailer
|
A text string added each Image entry except the last one.
|
Behavior is similar to the $(xrefs) function.
The $(getrec) DIESEL function
RText supports displaying Xrecord data through the $(getrec) DIESEL function.
The syntax for the $(getrec) DIESEL function is:
$(getrec, key, code)
key
|
Entry name in the Named Object Dictionary.
|
code
|
Group code to extract.
|
The $(getrec) function extracts a value from an Xrecord by looking in the Named Object Dictionary for key, then for a data value associated with code. Currently, only group codes in the ranges 1-9 (string), 40-59 (real), 60-79 (integer) and 300-309 (string) are supported
Format
|
Output
|
Format
|
Output
|
D
|
7
|
H
|
10
|
DD
|
07
|
HH
|
10
|
DDD
|
Thu
|
MM
|
50
|
DDDD
|
Thursday
|
SS
|
17
|
M
|
11
|
MSEC
|
506
|
MO
|
11
|
AM/PM
|
AM
|
MON
|
Nov
|
am/pm
|
am
|
MONTH
|
November
|
A/P
|
A
|
YY
|
02
|
a/p
|
a
|
YYYY
|
2002
|
Inga kommentarer:
Skicka en kommentar