does anyone know how to get the parameter SW-Created Date to show in different formate? It shows on my print as Wednessday October 4, 2010, and I want it to show as 10/1/2010.
From the help file;
To automatically insert information in a drawing, you can link note text in the drawing sheet or drawing sheet format to document properties. For the procedure to add a link in a note, see Link to Property.
All SolidWorks documents have system-defined properties, including the following:
Author field in Summary Information dialog box
Comments field in Summary Information dialog box
Configuration name in ConfigurationManager of part or assembly
SW-Created Date *
Created field in Summary Information dialog box
document name, no extension
document folder with backslash at the end
Keywords field in Summary Information dialog box
SW-Last Saved By
Last Saved By field in Summary Information dialog box
SW-Last Saved Date *
Last Saved field in Summary Information dialog box
SW-Long Date *
current date in long format
SW-Short Date *
current date in short format
Subject field in Summary Information dialog box
Title field in Summary Information dialog box
* Properties that include date formats are language and region dependent. For details, see the Control Panel settings on your computer.
Additionally, drawings have the following system-defined properties:
sheet number of the active sheet
SW-Sheet Format Size
sheet size of the active sheet format
name of the active sheet
scale of the active sheet
template size of the drawing template
total number of sheets in the active drawing document
name of the active drawing view
scale of the active drawing view
You can link a note to the properties of the model shown in the drawing (the SW-File Name property, for example, or a user-defined custom property in the model document).
If the property value cannot be found, the note displays ERROR!<variable name>. To show or hide the error message, click View, Annotation Link Errors.
A linked note can include additional text, and it can include links to more than one property. For example, to display the current sheet number and the total number of sheets, you can add this note:
SHEET $PRP:"SW-Current Sheet" OF $PRP:"SW-Total Sheets"
On the sheet, the property values are displayed:
SHEET 1 OF 2 (on the first sheet of a two-sheet drawing)
its kind of buried in the middle of Troy's post - the format used to display the date properties are controlled by the operating system settings, adjusted in the control panel.
The SW-Short Date seems to be working, but once the drawing is created, will that date stay the same, or will it always show the current date? What I want is a short version of the SW-Created Date.
the short date and long date properties will update to the current date whenever the file is opened. (useful for date printed type of notes). if you can't get your windows to display the date in a format you like, you will have to manually enter the created date.
When I set up our drawing blocks I used the following to set up the created date:- text(now(),"dd/mm/yy")
This enters the date of creation and doesnt update it on repoening the file days later.
We do use driveworks to set this up though
thanks for you help. I think I have it worked out.
For anyone still trying to do this SW-Created Date(Short Date) worked for me as of SW2012
This fixed my problem, thank you very much!
I know this is an old thread, but I found this example of how to apply the force Short Date format helpful.
i just tried it in 2014. it doesnt work. any idea? thanks.
Thought I had it working when a short date was displayed, turned out it was ONLY displaying the short date, not the created/last saved date in short format. Using 2016 here. Has anybody found a solution/work around?
Sky Li / Steve B,
Did you get this figured out? If not, can you post examples of the actual parameter you are using, e.g.;
I tried using $PRP:"SW-Created Date(Short Date)" and it pulls today's date, not the created date. Using $PRP:"SW-Created Date" gives the correct value, but in the long format.
Strangely I've been doing this myself only today, so I wont know if it works till tomorrow
I noticed you have to choose Short or Long when you put it in, it makes no difference to the property
but it seems to work
Rob, I also tried that, but when doing it in a table it always reverts to long format with time.
so it does, must be a bug
Custom property, property tab builder. Gives a calendar which is easy to apply today's date. Which also is linked to into our released status of our revision table. All other dates in our rev tables are driven by current date. Older drawings always updated with current date which played havoc on revisions and drawings in general.
This is how ours is and it seems to work just fine.
$PRP:"SW-Created Date(Created Date)"
Jason, it looks like this works in normal text boxes, but doesn't work in SolidWorks tables, but this also gives the long format. It may be worth me creating a new post about this issue so I don't hijack the OPs discussion.
Retrieving data ...