You are on page 1of 7

Sign In

English

Search

SUPPORT & LEARNING (/SUPPORT)


SERVICE)

CUSTOMER SERVICE (/CUSTOMER-

COMMUNITY (/COMMUNITY)

Home (/) > Support (/support) > AutoCAD (/support/autocad)


> Learn & Explore (/support/autocad/learn-explore)

Overview (/support/autocad/)
started)

Getting Started (/support/autocad/getting-

Learn & Explore (/support/autocad/learn-explore)

(/support/autocad/downloads)

Downloads

Troubleshooting (/support/autocad/troubleshooting)

RTEXT (Express Tool)

Like (0)

Share

Sep 11 2015|
In-Product View (http://help.autodesk.com/cloudhelp/2016/ENU/AutoCAD-

Applies to AutoCAD 2016, AutoCAD Architecture 2016, AutoCAD Civil 3D 2016, AutoCAD Electrical 2016,
AutoCAD MEP 2016, AutoCAD Map 3D 2016, AutoCAD Mechanical 2016, AutoCAD P&ID 2016, AutoCAD
Plant 3D 2016, AutoCAD Structural Detailing 2016, and AutoCAD Utility Design 2016

Creates remote text (rtext) objects.


Find
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.
Also called reactive text objects, remote text objects are displayed the same way AutoCAD
text and mtext objects are displayed, however 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.
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

English

Core/files/GUID-28585C1C-65B8-41E0-90A3-7C043123EF7A.htm)

plan to share your drawing with someone who does not have RTEXT, use the EXPLODE
command to convert rtext objects to mtext objects.
Command:RTEXT
Currenttextstyle:STANDARDTextheight:0.2000Textrotation:0
Enteranoption[Style/Height/Rotation/File/Diesel]<Diesel>:Specifyanoption

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.

Using DIESEL Expressions


DIESEL provides options previously accessible only with custom programs. Here are some
examples of how rtext objects containing DIESEL expressions can be used in your drawings.
You can paste these examples into the DIESEL Expression dialog box.
Using the GETVAR Function
To display the drawing name 102-fp12.dwg, use the following expression:
Drawingfile:$(getvar,"dwgname")

The resulting rtext object appears as follows:


Drawingfile:102fp12.dwg

To include the folder path with the file name:


Drawingname:$(getvar,"dwgprefix")$(getvar,"dwgname")

The resulting rtext object appears as follows:


Drawingfile:C:\Projects\97102\Arch\102fp12.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.
Using the EDTIME Function
When you plot a drawing, you might want the output to show the date and the time that
the plot was created. The following DIESEL expression displays this information in your
drawing:

$(edtime,0,MONDD","YYYYH:MMam/pm)

The resulting rtext object appears as follows:


Mar22,200011:12pm

Using the GETPROP Function


Rtext supports drawing properties through a locally defined $(getprop) DIESEL function.
With $(getprop) , values from the tabs in the Drawing Properties dialog box (DWGPROPS
command) can be extracted and displayed in rtext objects. The syntax for the $(getprop)
function is:
$(getprop,propertyname)

where property name can be any of the following fields from the dialog box:
Title
Subject
Author
Keywords
Comments
LastSavedBy
Revno
CustomProperty

For example, if the drawing properties for a drawing contains the text "Excavated Site" in
the Subject field, the DIESEL expression:
Subject:$(getprop,subject)

in an rtext object will display as:


Subject:ExcavatedSite

Note: The $(getprop) 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 called Project Name, the following DIESEL expression will
display the value:
Project:$(getprop,%PROJECTNAME)

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.
Using the XREFS Function
Rtext supports listing xref files attached to a drawing using the $(xrefs) function with the
following syntax:

$(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.

For example, the rtext DIESEL expression:


$(xrefs,3)

displays a list of xrefs in the following format:


BELEC[c:\proj14\belec.dwg]
MELEC[c:\proj14\melec.dwg]
RELEC[c:\proj14\relec.dwg]
FELEC[c:\proj14\felec.dwg]

while the expression:


$(xrefs,2,Includes:)

lists the xrefs as:


Includes:BELEC
Includes:MELEC
Includes:RELEC
Includes:FELEC

Using the IMAGES Function


Rtext supports listing images attached to the drawing through the $(images) function. The
syntax for the function is:
$(images[,flags[,leader[,trailer]]])

flags

A collection of bitflags with the following meanings: 4 = do not display file name extension, 8
= do not display path

leader

A text string inserted before each Image entry.

trailer

A text string added each Image entry except the last one.

The behavior of the $(images) function is similar to that of the $(xrefs) function.
Using the GETREC Function
RText supports displaying xrecord data through the $(getrec) function. The syntax for the
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.

Files
rtext.lsp, rtext.arx
Related Concepts
About AutoCAD Express Tools (http://knowledge.autodesk.com/support/autocad/learnexplore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Core/files/GUID-E0F8792C-86984307-992B-FE53952F47D2-htm.html)
Related Reference
Express Tool Reference (http://knowledge.autodesk.com/support/autocad/learnexplore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Core/files/GUID-CC626232-DC3A45E1-B3C8-DF3F79186DE2-htm.html)

Was this Article Helpful?


Please help us improve the content on this site. Was this article helpful?

FOLLOW AUTODESK
Facebook
(http://www.facebook.com/autodesk)
Twitter
(https://twitter.com/autodesk)
Youtube
(http://www.youtube.com/autodesk)
LinkedIn
(http://www.linkedin.com/company/autodesk)
All social
(http://www.autodesk.com/social-

Yes

No

media)

PRODUCTS

SUPPORT & LEARNING BUY

ABOUT AUTODESK

3D CAD software

Support & Learning

Careers

Online store

(http://usa.autodesk.com/adsk/servlet/item?
(/support)

(http://store.autodesk.com/)
(http://www.autodesk.com/careers)

siteID=123112&id=17918750)
System Requirements

Find a reseller

Construction

(/support/system-

(http://usa.autodesk.com/adsk/servlet/ps/searchform?
(http://usa.autodesk.com/adsk/servlet/index?

software

requirements)

siteID=123112&id=1088201)
siteID=123112&id=1073074)

Contact Us

(http://www.autodesk.com/industry/architectureCustomer Service

Subscription

engineering-

(http://usa.autodesk.com/adsk/servlet/pc/index?
(http://usa.autodesk.com/community-

(/customer-service)

Philanthropy

construction/construction)Installation,

id=17662508&siteID=123112)
relations/)

Drafting software

Support offerings

Activation & Licensing

Gallery

(http://www.autodesk.com/products/autodesk(/customer-

(http://usa.autodesk.com/support(http://usa.autodesk.com/gallery/)

autocad-lt)

service/installation-

offerings/)

Investor Relations

Painting software

activation-licensing)

Education Licensing

(http://investors.autodesk.com/phoenix.zhtml?

(http://www.autodesk.com/sketchbookpro)
Account

(http://usa.autodesk.com/adsk/servlet/index?
c=117861&p=irol-

Student downloads

siteID=123112&id=10916786)
irhome)

Management

(http://students.autodesk.com/?
(/customer-

Home

Newsroom

nd=download_center)

service/account-

(http://www.autodesk.com/store)
(http://usa.autodesk.com/adsk/servlet/pc/index?

Design engineering

management)

id=14223640&siteID=123112)

(http://www.autodesk.com/industry/productForums (/community)

Trust Center

design-

(http://www.autodesk.com/trust)

Training &

manufacturing/consumer- Certification

Autodesk Labs

product-design-

(http://www.autodesk.com/training-

(http://labs.autodesk.com/)

manufacturing)

and-

Autodesk Research

Civil engineering

certification/overview)

(http://www.autodeskresearch.com/)

(http://www.autodesk.com/suites/infrastructureClasses on Demand

Autodesk University

design-

(http://au.autodesk.com/au-

(http://au.autodesk.com/)

suite/overview)

online/overview)

PLM

Events

(http://usa.autodesk.com/360(http://www.autodesk.com/events)
lifecycle-

Contact Support

management-

(/contactus)

software/plm/)
Character Animation
(http://www.autodesk.com/suites/entertainmentcreationsuite/overview)
Movie editing
(http://www.autodesk.com/industry/mediaentertainment/professionalvideo)
Visual effects
(http://www.autodesk.com/industry/mediaentertainment/film-tv)

Privacy (http://usa.autodesk.com/privacy/)
Legal Notices & Trademarks (http://usa.autodesk.com/legal-notices-trademarks/)
Report Noncompliance (http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=340446)
Sitemap (http://usa.autodesk.com/adsk/servlet/index?id=10579437&siteID=123112)
Copyright 2015 Autodesk Inc. All rights reserved

Except where otherwise noted, work provided on Autodesk Knowledge Network is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
(http://creativecommons.org/licenses/by-nc-sa/3.0/) Please see the Autodesk Creative Commons FAQ (/customer-service/share-theknowledge) for more information.

Site Version: 1.0.57

You might also like