×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

custom prop. formatting

custom prop. formatting

custom prop. formatting

(OP)
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

RE: custom prop. formatting

Try $PRP:"SW-Short Date"

RE: custom prop. formatting

(OP)
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

RE: custom prop. formatting

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

RE: custom prop. formatting

I have not found a way to change built-in SW date formats using API or other means.

RE: custom prop. formatting

(OP)
Thanks guys.  I know now not to waste my time looking!

Paul

RE: custom prop. formatting

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources