Block attribute field (last saved date + user) in a .dwt always shows the template creator's name in new drawings

Hi all,

I'm setting up a company template (.dwt) in DraftSight 2026 Enterprise x64 (27.4.5067) on Windows 11. I've been stuck on one title-block attribute for several weeks and would be grateful for any help.

Goal

The title block is a block named Header, inserted in paper space of the template. One attribute, LAST_SAVED_BY (caption "Last saved by"), should show the last save date and the user who saved, as dd.MM.yy Username, for example 06.11.26 JohnDoe.

In the template, and in a new drawing that hasn't been saved yet, it should show a placeholder such as ----. The template goes to colleagues, so it must not carry my name or the date I saved it.

What happens

Whatever I try, a new drawing created from the template shows 06.11.26 HermanLeis in Last saved by before anyone saves it. That is my Windows login and the date I last saved the template. REBUILDFIELD doesn't change it. The preview in the Ctrl+N "Specify template" dialog also shows my name.

What I tried

  1. Native fields in the attribute default: %<\\AcVar SaveDate \\f "dd.MM.yy">% - %<\\AcVar LastSavedBy>%. In the template it immediately showed today's date and my name.

  2. DIESEL typed as text in BLOCKEDIT: I put "\\\$(edtime,\\\$(getvar,tdupdate),DD.MO.YY) \\\$(getvar,loginname)" in the attribute default, closed the editor, and ran ATTSYNC. The attribute immediately showed my Windows login and today's date.

  3. DIESEL inserted with the Field button: In BLOCKEDIT I used the Field button next to Value (Others > Diesel Expression) with: \\\$(if,\\\$(getvar,dwgtitled),\\\$(edtime,\\\$(getvar,tdupdate),DD.MO.YY) \\\$(getvar,loginname),----)

    • The Field dialog shows the field string %<\\AcDiesel \\\$(if,...)>%.

    • The preview was 30.10.26 HermanLeis, the template's last save date at the time. That's expected inside the template.

    • A new drawing from the template (NONAME_9) showed 06.11.26 HermanLeis instead of ----, and REBUILDFIELD changed nothing.

  4. Checking the drawing name instead of DWGTITLED: \\\$(if,\\\$(eq,\\\$(upper,\\\$(substr,\\\$(getvar,dwgname),1,6)),NONAME),----,\\\$(edtime,\\\$(getvar,tdupdate),DD.MO.YY) \\\$(getvar,loginname)) New drawings gave the same result.

  5. Attribute settings and re-inserting the block: Predefined = Yes, Fixed = No, Lock position = Yes. I erased the Header block in the template's paper space and inserted it again with INSERTBLOCK, not exploded. In the template, Last saved by then showed 06.11.26 HermanLeis with a gray field background.

  6. Several template files: I tested Template2, Template3 and Template4, using both Ctrl+N and File > New and picking the template explicitly. The result was the same every time.

  7. Other commands: I also used Block Attribute Manager (Sync and Edit) and UPDATEBLOCKATTRIBUTES (ATTSYNC) along the way.

Other observations

  • Other fields work. The drawing-name field and the Drafting Date field (a native Save date field) in the same block do behave as fields in a new drawing. The name shows NONAME_x, and Drafting Date shows ######## until the first save. Only Last saved by keeps my name.

  • No field background. When I select the title block in a new drawing, the drawing name and Drafting Date have field backgrounds, but Last saved by doesn't. It looks like plain text.

  • Startup LISP. A startup routine fills the Author attribute in the same block with the Windows username when Author is empty. It only writes to Author and never touches LAST_SAVED_BY.

Questions

  1. Is it expected that a field in a block attribute in a .dwt is copied into new drawings as its last evaluated text, instead of being evaluated again? How can I make it evaluate for the user who creates and saves the drawing?

  2. Can an attribute's Value end up holding more than one field? I opened the Field dialog from the attribute editor several times. Would that make it behave like plain text? Is there a way to see the raw field code stored in an attribute definition or a placed attribute?

  3. Does ATTSYNC, or Block Attribute Manager > Sync, convert fields in placed attributes to plain text?

  4. Does DraftSight have a setting like AutoCAD's FIELDEVAL, or another way to stop field values from being evaluated and stored in the template?

  5. In a DIESEL field, what do DWGTITLED and DWGNAME return in a new, unsaved drawing created from a template?

  6. If fields can't do this, is a LISP save reactor the recommended approach in DraftSight? It would write plain text just before save, and ---- when the file is a .dwt. Are :vlr-commandWillStart and vlr-dwg-reactor with :vlr-beginSave supported? I haven't tried this yet.

Screenshots attached:

  • the Field dialog with the DIESEL expression and its preview

  • the attribute definition properties
     

  • the template with the title block

  • a new drawing created from the template


     

Thanks in advance!

Answers 0