Get date value

Get date value

Anonymous
Not applicable
473 Views
4 Replies
Message 1 of 5

Get date value

Anonymous
Not applicable
Hi,

I'm trying to get the creation date value from the Inventor iProperties. So, because i'm working in VB.Net, i used i MsgBox to show me the value, for me to see it and to see it's format. I was surprised my a Msg that show me "00:00:00", that means that it assumes the date as hours:minutes:seconds, and not the day/month/year as i expected.
The code is next:
Dim asd As Date
asd = Propriedades.Item("Creation Date").Value
MsgBox(asd, MsgBoxStyle.OkOnly)

Please...help me!
0 Likes
474 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
dear friend,
u can do this in inventor
go to i properties from file menu select the date, then go to .idw or ,dwg file, there u write a text , in text , u"ll file custom and iprperties , select the i properties , go to date and press the arrow icon to appear in your text command , make it o.k, in this way u can also mention your dimensions also.
bye
kantidhar@rediffmail.com
dy,manager design and development,
new delhi,india
0 Likes
Message 3 of 5

Anonymous
Not applicable
Kantidhar,

Thanks for the reply!
I didn't understandd your point very well. I'm talking in bringing to a VB MsgBox, the date value, not to pass it to some text in an inventor document....

thanks

Message was edited by: mqdias Message was edited by: mqdias
0 Likes
Message 4 of 5

Anonymous
Not applicable
The name of the property is actually "Creation Time" (and not "Creation
Date"). Try the following:

Dim asd As Date
asd = Propriedades.Item("Creation Time").Value
MsgBox(asd, MsgBoxStyle.OkOnly)

It should output something like:

1/15/2008 3:15:31 PM


Sanjay-
0 Likes
Message 5 of 5

Anonymous
Not applicable
Sanjay,

Thank you very very much!!
It worked just fine!!!

Thanks,

Marcos
0 Likes