- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear Community,
I create a new drawing from a template. It was created October 30, 2019 or 10/30/2019.
Next, I use the Visual LISP tool, VLA-SAVEAS, to save the drawing. Today is/was November 25, 2019 or 11/25/2019.
(vla-SaveAs (vla-get-ActiveDocument (vlax-get-acad-object)) "C:/Users/Jberns/Desktop/test001.dwg")
The CDATE reports the correct date when typed at the Command Prompt.
However, using a FIELD object that uses the creation date system variable (CDATE), returns the creation date of the template, NOT the current drawing.
If I use the AutoCAD SAVEAS command, the FIELD object reports the correct date.
What else do I have to perform with VLA-SAVEAS to get the correct creation date values for use by FIELD objects?
I have attached the template for you to test. When you download or save the template, it will use today's date. You will need to use a file date editor to change the date and then see the effects.
Thanks for your time and attention. I look forward to a solution.
Kind regards,
Jerry
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
Solved! Go to Solution.