Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

custom prop. formatting

Status
Not open for further replies.

pejaer

Bioengineer
Aug 4, 2008
57
Hi guys and gals,

Is there a way to change the formatting built-in custom properties, for example, I want to use $PRP:"SW-Last saved date", but it looks like it is using the windows regional properties long date and time. I like the "last saved date" concept, but certainly don't need the time...

Thanks.
Paul

SW 06
 
Replies continue below

Recommended for you

Thanks CBL for the input, but you did not really answer my question.

Can one change the formattings associated with the properties, or am I stuck with the formatting provided?

thanks
Paul
 
The format is controlled at the windows system level. The only way to set your own formatting is to run a macro that takes all the elements, orders them and then apply that to a custom property. A macro for this that you need to run every time doesn't make much sense though.

Matt Lorono
CAD Engineer/ECN Analyst
Silicon Valley, CA
Lorono's SolidWorks Resources
Co-moderator of Solidworks Yahoo! Group
and Mechnical.Engineering Yahoo! Group
 
I have not found a way to change built-in SW date formats using API or other means.
 
Thanks guys. I know now not to waste my time looking!

Paul
 
Private Sub tdDate_Click()

Date2 = Format(Now(), "MM/dd/yy")
DateCompleted.Text = Date2 'Sets Date to today's date

End Sub
----------
This is just a part of my custom property macro. When I hit the "tdDate" button it inputs today's date in the MM/dd/yy format. You can change that to whatever you want, just look up the formatting call online.

James Spisich
Design Engineer, CSWP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor