Professional Documents
Culture Documents
English
Search
COMMUNITY (/COMMUNITY)
Overview (/support/autocad/)
started)
(/support/autocad/downloads)
Downloads
Troubleshooting (/support/autocad/troubleshooting)
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
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
Height
Rotation
File
Diesel
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 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)
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)
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
trailer
flags
A collection of bitflags with the following meanings: 4 = do not display file name extension, 8
= do not display path
leader
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
code
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)
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
ABOUT AUTODESK
3D CAD software
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
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.