Contact US

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!

*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

Date format in drawing frame

Date format in drawing frame

Date format in drawing frame

I have modified the default CATScript to my requirements but I can't get the date to a dd/mm/yy format. Please help!
Can anyone suggest a good user guide for Catia VB?



RE: Date format in drawing frame

Hi there.

The only written guide to CATScript and CATIA VB that I know of is a german book:( Had to buy a dictionary to :) )

CATIA V5 - Effizientes Konstruieren mit Makros.
by Dieter R. Ziethen (Author)

It only deals with Parts (Part/Surface/Sketcher workbenches) and not drawings or assemblies. Its quite useful for building parts though.It was written for R10 I believe.

The question you post about date format is more general for VB/VBA and there are several books on these topics. Personally I got started with "VBA for dummies", which is OK to get going, and then I bought some books from Oreilly: "VB/VBA in a nutshell", "VBScript in a nutshell" and finally "Visual Basic Controls in a nutshell".
(Can't guarantee the title-names are 100% correct)

These are very good books for finding what you need quickly.Also if you have any office applications installed, for example excel,the helpfiles for VBA contains lots of good information on general use of VBA with code examples.


RE: Date format in drawing frame

Thanks bjod,

I had a hunt around the web last night and found plenty of sites with VBScript help - www.devdex.com being a good one - also www.tek-tips.com a sister site of this forum.

BTW the script i ended up with is -

' Setting for UK date formating

Dim strUKDate, MYdd, MYmm, MYyy
MYdd = DatePart("d", date())
MYmm = DatePart("m", date())
MYyy = DatePart("yyyy", date())
if len(MYdd) < 2 then
MYdd = "0" & MYdd
end if
if len(MYmm) < 2 then
MYmm = "0" & MYmm
end if
strUKDate = (MYdd & "/" & MYmm & "/" & right(MYyy,2))

' End of UK date setting

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! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close