Set check date using iLogic Rule

Set check date using iLogic Rule

Anonymous
Not applicable
1,386 Views
6 Replies
Message 1 of 7

Set check date using iLogic Rule

Anonymous
Not applicable

I want to set the checked date to the current date by using a ilogic rule. Can anyone help 

0 Likes
Accepted solutions (1)
1,387 Views
6 Replies
Replies (6)
Message 2 of 7

bradeneuropeArthur
Mentor
Mentor
Checked date in inventor iproperty or what?

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 7

Anonymous
Not applicable
Accepted solution

SyntaxEditor Code Snippet

If (ThisDoc.Document.DocumentType <> kDrawingDocumentObject) Then Return
Dim odrawdoc As DrawingDocument
odrawdoc = ThisDoc.Document
If (odrawdoc Is Nothing) Then Return

customPropertySet=odrawdoc.PropertySets.Item("Inventor User Defined Properties")

iProperties.Value("Project", "Checked Date")=Now

InventorVb.DocumentUpdate()
0 Likes
Message 4 of 7

tkennedy26
Enthusiast
Enthusiast

This should do it.

iProperties.Value("Project", "Checked Date") = Now
InventorVb.DocumentUpdate()
Message 5 of 7

bradeneuropeArthur
Mentor
Mentor

What is going wrong then.

You may be need to format your date now to the requirements.

 

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 6 of 7

Anonymous
Not applicable

Sorry, i have solved this now, with the code i posted.

0 Likes
Message 7 of 7

bradeneuropeArthur
Mentor
Mentor

You can solve it yourselves also!

 

 

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