News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Update paper space timestamp

Started by tamhas, May 13, 2024, 02:07:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tamhas

I have 2021 and haven't touched TurboCAD since then, but am now trying to make some mods to an existing drawing.  The paper spaces I have defined have a date-time stamp, which is handy in knowing which print out is the most recent ... but, I can't figure out how to get the existing three year old date to update to the present.  Been doing a bunch of searching and poking about, but no joy so far.  Surely this is easy.
Thomas Mercer-Hursh, TC Pro 15

Alvin Gregorio

Quote from: tamhas on May 13, 2024, 02:07:48 PMI have 2021 and haven't touched TurboCAD since then, but am now trying to make some mods to an existing drawing.  The paper spaces I have defined have a date-time stamp, which is handy in knowing which print out is the most recent ... but, I can't figure out how to get the existing three year old date to update to the present.  Been doing a bunch of searching and poking about, but no joy so far.  Surely this is easy.
How were the original date-time stamps in the Drawing created?-- Manually, in a Title Block?  Via an OLE object link?
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

tamhas

I don't remember.  They are in the corner of the paper space page.  Click on them and there is a box around it.  I am sure it is a pure TurboCAD thing.  I have a vague memory of there being some action required to get it updated, but don't know what it was.  Some time after my post here, I noticed that it was updated, but I don't know which piece of fiddling caused that.  I didn't notice right away since the month and day in 2021 were the same as yesterday in 2024.
Thomas Mercer-Hursh, TC Pro 15

Alvin Gregorio

Quote from: tamhas on May 14, 2024, 07:20:35 AMI don't remember.  They are in the corner of the paper space page.  Click on them and there is a box around it.  I am sure it is a pure TurboCAD thing.  I have a vague memory of there being some action required to get it updated, but don't know what it was.  Some time after my post here, I noticed that it was updated, but I don't know which piece of fiddling caused that.  I didn't notice right away since the month and day in 2021 were the same as yesterday in 2024.
It is probably a MS Word or Apache Open Office document OLE object.
If you want help with this, please upload/attach the .tcw Drawing file.

You could first try:
>Go to the Edit Menu
>Scroll down to near the bottom, and click on Links
>In the pop-up window, click on the name of the linked file
>Click Update Now
>Close
>Refresh your Paperspace Drawing (F5)
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

tamhas

I was pretty sure I hadn't used anything external and when I went to the Edit menu Links is grayed out, so that appears to be the case.  When I click on it, I get a rectangular box around the date time and the size shows up in the bottom bar.
Thomas Mercer-Hursh, TC Pro 15

Alvin Gregorio

Quote from: tamhas on May 14, 2024, 09:38:00 AMI was pretty sure I hadn't used anything external and when I went to the Edit menu Links is grayed out, so that appears to be the case.  When I click on it, I get a rectangular box around the date time and the size shows up in the bottom bar.
Okay.  Please upload/attach the .tcw Drawing file so we can check it out.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

tamhas

OK.  It is the Front Yard paper space I have been working on.
Thomas Mercer-Hursh, TC Pro 15

Alvin Gregorio

#7
Quote from: tamhas on May 14, 2024, 02:14:27 PMOK.  It is the Front Yard paper space I have been working on.
I have downloaded and opened your file.
I am in the Front Yard Paperspace.
When I select that Date/Time stamp, Selection Info Palette tells me it is an OLE_Document.
But there is no link.
I am going to say that when you initially created it, you either just Copied/Pasted from your word processing application or you Insert->Object, but you did not select the "Link" option.

What I recommend:
(Read this)
>Start over.
>Start a New, blank, word processor document in MS Word, Apache Open Office or similar.
>In that document, insert Date_&_Time object.
>Set it to Update automatically.
>Save this somewhere that makes sense.  Like maybe in C:\Users\[you]\OneDrive\Documents\TurboCAD_2021_x64\Miscellaneous.

>In your TurboCAD Drawing, Insert->Object.  Selecting "Create from file".
>Browse to the word-processor file you saved above.
>Ensure you have the "Link" option selected.

After Saving and Closing this file, next time you open it, you should get a prompt to update the Link.  If not, you will have to do it manually; including maybe opening and Saving that word-processor document first.
___
But to be honest--  I think it's easier, faster, and more dependable to just create a Text or MultiText object in TurboCAD, format it as a Block, and insert that into Paperspaces.
Every time you go in to edit the drawing, first thing you do is update that Block information manually.
____
There is a Ruby script included in our TurboCAD that gets close.  Perhaps someone would like to create a new one based on that and share it.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

I did my Block method in the attached.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

#9
didn't someone post a Ruby script for a date stamp?
https://forums.turbocad.com/index.php?topic=28284.msg166886#msg166886

I still think a time stamp  should be an automatic option included in the print file.
Autocad has that functionality.  It is quite useful because you can include the paperspace and file name.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

Quote from: nikkipollard on May 14, 2024, 09:35:09 PMI still think a time stamp  should be an automatic option included in the print file.
Autocad has that functionality.  It is quite useful because you can include the paperspace and file name.
I concur.

If anyone with authority is listening.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#11
Quote from: nikkipollard on May 14, 2024, 09:35:09 PMdidn't someone post a Ruby script for a date stamp?
https://forums.turbocad.com/index.php?topic=28284.msg166886#msg166886
Unfortunately, all of Marek's scripts in that thread have been removed in the Great Attachment Purge.  Marek notes that in edits to his posts, and states he has added them in a subsequent post(s), but I do not find the re-posted scripts in the thread  (I do not recall a second Great Attachment Purge).
A case for why we should share our scripts via the Insert->Code function.

Note that a Forum Member by the name of tamhas started that thread, April of 2021.  The same Forum Member that started this thread.
Perhaps that is how tamhas initially inserted the Date/Time stamp in the drawing they posted here.
____
I'm confident that with Nikki's exponentially-improved scripting abilities developed over the past few years, she could write a quality script for this.
Key is-- the Date/Time has to automatically update.  Or better yet, automatically present us with the question/option "Do you wish to Update Date & Time?", upon Saving or Printing the file.  I believe in the linked thread, Marek never did get his script to auto-update Date/Time.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

Quote from: Alvin Gregorio on May 15, 2024, 04:00:06 AM
Quote from: nikkipollard on May 14, 2024, 09:35:09 PMdidn't someone post a Ruby script for a date stamp?
https://forums.turbocad.com/index.php?topic=28284.msg166886#msg166886
Unfortunately, all of Marek's scripts in that thread have been removed in the Great Attachment Purge.  Marek notes that in edits to his posts, and states he has added them in a subsequent post(s), but I do not find the re-posted scripts in the thread  (I do not recall a second Great Attachment Purge).
A case for why we should share our scripts via the Insert->Code function.

Note that a Forum Member by the name of tamhas started that thread, April of 2021.  The same Forum Member that started this thread.
Perhaps that is how tamhas initially inserted the Date/Time stamp in the drawing they posted here.
____
I'm confident that with Nikki's exponentially-improved scripting abilities developed over the past few years, she could write a quality script for this.
Key is-- the Date/Time has to automatically update.  Or better yet, automatically present us with the question/option "Do you wish to Update Date & Time?", upon Saving or Printing the file.  I believe in the linked thread, Marek never did get his script to auto-update Date/Time.

Alvin you way over estimate my skills. I cant.
 I have a script that I use for a time stamp but it relies on my memory in my head.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

tamhas

OK, I confess I have no memory of this solution, but the evidence from that thread seems pretty clear that is what I must have done.  Also clear I really started something ... :)

The question remains, given that is what I did, how do I now get the date-time to update to present?

I can see advantages to automatic, but in this context I am happy with manual since I may well be just reprinting more copies of an unchanged drawing.
Thomas Mercer-Hursh, TC Pro 15

Alvin Gregorio

#14
Quote from: tamhas on May 15, 2024, 02:11:31 PMThe question remains, given that is what I did, how do I now get the date-time to update to present?

I can see advantages to automatic, but in this context I am happy with manual since I may well be just reprinting more copies of an unchanged drawing.
Just manually go into your Date/Time Block via Edit Contents or the Edit Tool option and change the Date and Time to current.
I do it when I open the drawing for revising (just in case I forget later), and just before I Print, and/or Save & Close.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

Quote from: tamhas on May 15, 2024, 02:11:31 PMThe question remains, given that is what I did, how do I now get the date-time to update to present?
You know... I have to tell ya... I don't know what I was thinking before.  I wasn't, obviously.
__
In your Drawing, to get the Date+Time to update to current, I:
>Select that Date/Time insertion
>While selected, go to the Edit Menu
>About 70% down is "Document Object".  Hover over that.
>That expands two options to the right.  Click on Edit.
>That opens up a sort-of-MS_Word (in my system; if you don't have MS Word installed, I don't know if or what it opens up)
>In that sort-of-MS_Word, the Date and Time appear updated to current.
>I close out of that sort-of-MS_Word application.
That's it.  If not successful, maybe Save in that sort-of-MS_Word application before Closing it.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Jeff_in_90620

Quote from: Alvin Gregorio on May 15, 2024, 04:00:06 AMbetter yet, automatically present us with the question/option "Do you wish to Update Date & Time?", upon Saving or Printing the file. 

For those of us who need version control to comply with ISO 9001 / AS9100 requirements, adding the ability to automatically update the Date & Time when saving a file, along with the ability to optionally update the Revision code (usually a letter, but not always a single character) would really improve the workflow.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Marek

Hi
I guess since the TC 20 Ruby version, the "Time Stamp" script has been included in the scripts that are installed together with TC. In the attached video I show how it works. The time is updated automatically using the Time.Now() function defined in Ruby (other programming languages have similar functions). We can change the date format by editing the script in the console or e.g. in Notepad++ and saving it in a new form.
Marek
Marek

TC Pro 2016, TC Pro 2018, TC Plat 2019,TC Plat 2020,TC Plat 2021,TC Plat 2022,TC Plat 2023,TC Plat 2024, TC Plat 2025
Laptop Asus i7 6500U, dual-core 2,50GHz, NVIDIA GeForce GTX 950M, RAM 12 GB, SSD 480GB
Windows 10 64 bit

nikkipollard

Quote from: Marek on May 17, 2024, 10:52:35 AMHi
I guess since the TC 20 Ruby version, the "Time Stamp" script has been included in the scripts that are installed together with TC. In the attached video I show how it works. The time is updated automatically using the Time. Now() function defined in Ruby (other programming languages have similar functions). We can change the date format by editing the script in the console or e.g. in Notepad++ and saving it in a new form.
Marek
Marek the version you posted originally had the ability to position the time stamp, by picking a point.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Marek

#19
OK. I found something. You can paste the text from the attachment into the console, as shown in the video. You can also paste it into e.g. Notepad++ and save it as a *.rb file, and then place it in the ....\Drawings\RubyScripts directory. After that we open TCad and use it using the Ruby function definition name.
Marek

P.S. Sorry, I forgot to attach the video.
Marek

TC Pro 2016, TC Pro 2018, TC Plat 2019,TC Plat 2020,TC Plat 2021,TC Plat 2022,TC Plat 2023,TC Plat 2024, TC Plat 2025
Laptop Asus i7 6500U, dual-core 2,50GHz, NVIDIA GeForce GTX 950M, RAM 12 GB, SSD 480GB
Windows 10 64 bit

tamhas

For me*, there is no Document Object on the Edit menu, but there is one on the right click menu and that worked as advertised.

Thank you!

TurboCAD 2021 Professional Version 28 Build 50
Thomas Mercer-Hursh, TC Pro 15