iLogic to VBA Creation Date .idw

iLogic to VBA Creation Date .idw

Anonymous
Not applicable
649 Views
4 Replies
Message 1 of 5

iLogic to VBA Creation Date .idw

Anonymous
Not applicable

Hello,

 

How can i convert this iLogic code to VBA? i want to change .idw files Creation Date NOW with VBA code.

 

File-iproperties-creation date- NOW

 

Could you please help me? or which VBA code should i use?

 

Thanks

 

oTime = Now.ToShortDateString
iProperties.Value("Project", "Creation Date") = oTime
iLogicVb.UpdateWhenDone = True
End Sub

0 Likes
650 Views
4 Replies
Replies (4)
Message 2 of 5

bradeneuropeArthur
Mentor
Mentor
Public Sub main()

'Dim oTime As String
'oTime = Now
'
''oTime.

Dim LValue As String

LValue = Format(Now, "dd/MMM/yy")

MsgBox LValue
MsgBox ThisDocument.PropertySets.Item(3).Item("Creation Time").Value
ThisDocument.PropertySets.Item(3).Item("Creation Time").Value = LValue

End Sub

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 5

Anonymous
Not applicable
Thanks for reply. It appears only a message  when i run the VBA code. It can not change the .idw files' creaton date. Long way to change the creaton date is : FILE-IPROPERTIES-PROJECT-CREATON DATE-NOW I want it to change with VBA code.
0 Likes
Message 4 of 5

bradeneuropeArthur
Mentor
Mentor

Don't understand your last message!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 5 of 5

Anonymous
Not applicable

I want to change the creation date with VBA code at below picture.

 

A.jpg

0 Likes