Over 1.109.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
Try the updated Units converter and the new precise Engineering calculator.
New AutoCAD 2026 commands and sys.variables and env.variables,.
CAD tip # 8157:
Question
A
You can add a text in your drawing which will automatically reflect the contents of a given environment variable on your PC.
Just add a text (e.g. by DTEXT) with the contents:
%<\AcDiesel $(getenv,TEMP)>%
(you can replace "TEMP" by the name of any other environment variable)
The contents of this dynamic field is updated on regen. Non-existing variables will display "----". You can add such text field also to a block attribute.
ACADACLT
21.8.2011
8024×
this tip shared by ARKANCE experts applies to: AutoCAD · AutoCAD LT ·
![CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

