Having a date issue with Custom iLogic Form.

Having a date issue with Custom iLogic Form.

sgwilliams
Collaborator Collaborator
1,428 Views
19 Replies
Message 1 of 20

Having a date issue with Custom iLogic Form.

sgwilliams
Collaborator
Collaborator

We created a custom form to speed up our data input process quite a few versions ago 2010 or 2012 I forget. It has worked very well for the most part. We control our drawing titleblock data from the base model iproperties. Some iProperties are the standard built into Inventor out of the box and others are custom. The issue I'm having effects both standard and custom iProperties date(s). Recently for some reason when I open a drawing and the models that are referenced in the drawing when I input the dates and close the form the dates shown on the drawing are a day behind what was entered. Example see screenshots.

 

The custom iLogic Form to control iPropertiesThe custom iLogic Form to control iProperties

 

idw Titleblockidw Titleblock

 

Now the funny thing about this is that once I check the files out of our Vault database make the changes and see that it is a day behind, if I open the form again and modify the dates, it works like it is supposed to. So my bandaid until this gets resolved is to put the date  + 1 day when I input the dates on the form and then I'm good. It's fustrating that I have to do this when I'm so used to just putting in the correct date and going on my merry way.

 

Has anyone else hads this issue or know of a fix?

Work Station : Custom built, Liquid Cooled, Asus Pro WS X570-ACE Motherboard; AMD Ryzen 9 3900X 3.8 GHz 12-Core Processor; ASUS TUF Gaming NVIDIA GeForce RTX 3060 V2 OC Edition Video Card; 32 GB CORSAIR Dominator Platinum DDR4-2132 Memory ; Samsung 850 EVO 1TB SSD Drive.
0 Likes
1,429 Views
19 Replies
Replies (19)
Message 2 of 20

bradeneuropeArthur
Mentor
Mentor

Are you using different timezones for you Vault server and Your workstation?

 

Regards,

Autodesk Software: Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018
Programming Skills: Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
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 !

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 20

sgwilliams
Collaborator
Collaborator

No both my Work Station  and our SQL server which our Vault is installed on, are set to Eastern Standard Time, both are on the same internal domain and both are synced with our domain controller which also doubles as our time server.

 

 

 

Work Station : Custom built, Liquid Cooled, Asus Pro WS X570-ACE Motherboard; AMD Ryzen 9 3900X 3.8 GHz 12-Core Processor; ASUS TUF Gaming NVIDIA GeForce RTX 3060 V2 OC Edition Video Card; 32 GB CORSAIR Dominator Platinum DDR4-2132 Memory ; Samsung 850 EVO 1TB SSD Drive.
0 Likes
Message 4 of 20

bradeneuropeArthur
Mentor
Mentor

What are you using to put the date into the form?

like a date and time picker?

could you upload a piece of code doing that?

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 20

sgwilliams
Collaborator
Collaborator

The iLogic has its own form builder tool that must have all its own code  that I do not see. See thescreenshot.

iLogic Form Editor tooliLogic Form Editor tool

 

The only iLogic is a few Rules, these include:

CheckForSetComments:

 

Dim doc As Document = ThisDoc.Document
Dim oUserParams As UserParameters = doc.ComponentDefinition.Parameters.UserParameters
Dim ParameterChecker As Parameter

Try
	ParameterChecker = oUserParams("SetComments")
Catch e As System.ArgumentException
	value = doc.PropertySets("Inventor Summary Information")("Comments").Value
	ParameterChecker = oUserParams.AddByValue("SetComments",value,"text")
End Try

SetComments:

 

iProperties.Value("Summary", "Comments") = SetComments

ShowForm:

iLogicForm.ShowGlobal("Carter Data", FormMode.Modal)

the only VBA code I use is the following so I can assign a hotkey to the macro:

 

Sub LaunchCarterFrom()
  RuniLogic "ShowForm"
End Sub

 

 

 

Work Station : Custom built, Liquid Cooled, Asus Pro WS X570-ACE Motherboard; AMD Ryzen 9 3900X 3.8 GHz 12-Core Processor; ASUS TUF Gaming NVIDIA GeForce RTX 3060 V2 OC Edition Video Card; 32 GB CORSAIR Dominator Platinum DDR4-2132 Memory ; Samsung 850 EVO 1TB SSD Drive.
0 Likes
Message 6 of 20

bradeneuropeArthur
Mentor
Mentor

What if you are closing the drawing withy the earlier dates, and opening it again.

is the issue than still there.

I know this is not a solution, but I try to investigate....

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

sgwilliams
Collaborator
Collaborator

Yes each time that you open the file this happens. Its like the form is a day behind until you input data and close the form. Then its fine, it will enter the date correctly. 

Work Station : Custom built, Liquid Cooled, Asus Pro WS X570-ACE Motherboard; AMD Ryzen 9 3900X 3.8 GHz 12-Core Processor; ASUS TUF Gaming NVIDIA GeForce RTX 3060 V2 OC Edition Video Card; 32 GB CORSAIR Dominator Platinum DDR4-2132 Memory ; Samsung 850 EVO 1TB SSD Drive.
0 Likes
Message 8 of 20

bradeneuropeArthur
Mentor
Mentor
  1. are the dates in the drawing I-properties correct?
    • if yes then they aren't displayed correct in the drawing header. this has to do with a delay in update the header.
  2. are the dates in your form correct,and not in your drawing I-properties?
    • then there is an illogic update error.

What situation looks familiar to you?

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 9 of 20

sgwilliams
Collaborator
Collaborator

Watch the screencast it will show the workflow on how the error occurs.

 

 

Work Station : Custom built, Liquid Cooled, Asus Pro WS X570-ACE Motherboard; AMD Ryzen 9 3900X 3.8 GHz 12-Core Processor; ASUS TUF Gaming NVIDIA GeForce RTX 3060 V2 OC Edition Video Card; 32 GB CORSAIR Dominator Platinum DDR4-2132 Memory ; Samsung 850 EVO 1TB SSD Drive.
0 Likes
Message 10 of 20

chandra.shekar.g
Autodesk Support
Autodesk Support

@sgwilliams ,

 

It seems to be unique issue with dates using iLogic form. To reproduce the same behavior, please provide sample drawing and part files to test and make sure that files are non confidential.

 

Thanks and regards,

 


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 11 of 20

DRoam
Mentor
Mentor

@sgwilliams, I didn't see anything wrong with what happened in the screencast. In the user form, you input:

 

  • Sales date = 1/26/2019
  • Author date = 1/27/2019
  • Check date = 1/21/2019

And when you return to the drawing, I see the same date for each field.

 

When do the dates change to be a day behind? After you close and re-open the drawing?

0 Likes
Message 12 of 20

sgwilliams
Collaborator
Collaborator

@DRoam  If you watch the video and freeze/pause the screen you will see the dates as I entered them. It is when I hit the "Apply" button that they drop back in time.

Work Station : Custom built, Liquid Cooled, Asus Pro WS X570-ACE Motherboard; AMD Ryzen 9 3900X 3.8 GHz 12-Core Processor; ASUS TUF Gaming NVIDIA GeForce RTX 3060 V2 OC Edition Video Card; 32 GB CORSAIR Dominator Platinum DDR4-2132 Memory ; Samsung 850 EVO 1TB SSD Drive.
0 Likes
Message 13 of 20

sgwilliams
Collaborator
Collaborator

@chandra.shekar.g 

 

Sorry I have been busy with an IT/Developement issue the last few days and haven't been using my Engineering workstation. I have attached the two files used in the video. 

Work Station : Custom built, Liquid Cooled, Asus Pro WS X570-ACE Motherboard; AMD Ryzen 9 3900X 3.8 GHz 12-Core Processor; ASUS TUF Gaming NVIDIA GeForce RTX 3060 V2 OC Edition Video Card; 32 GB CORSAIR Dominator Platinum DDR4-2132 Memory ; Samsung 850 EVO 1TB SSD Drive.
0 Likes
Message 14 of 20

chandra.shekar.g
Autodesk Support
Autodesk Support

@sgwilliams ,

 

Datasets are downloaded from previous post. iLogic  form "Carter Data" is unavailable at neither part nor drawing document.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 15 of 20

sgwilliams
Collaborator
Collaborator

@chandra.shekar.g 

 

Please explain, not sure what your trying to say.

Work Station : Custom built, Liquid Cooled, Asus Pro WS X570-ACE Motherboard; AMD Ryzen 9 3900X 3.8 GHz 12-Core Processor; ASUS TUF Gaming NVIDIA GeForce RTX 3060 V2 OC Edition Video Card; 32 GB CORSAIR Dominator Platinum DDR4-2132 Memory ; Samsung 850 EVO 1TB SSD Drive.
0 Likes
Message 16 of 20

chandra.shekar.g
Autodesk Support
Autodesk Support

@sgwilliams ,

 

Actually, Global iLogic form is used in part file (shown in video). But same iLogic form is unavailable inside part file.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 17 of 20

sgwilliams
Collaborator
Collaborator

So how do I share this form?

Work Station : Custom built, Liquid Cooled, Asus Pro WS X570-ACE Motherboard; AMD Ryzen 9 3900X 3.8 GHz 12-Core Processor; ASUS TUF Gaming NVIDIA GeForce RTX 3060 V2 OC Edition Video Card; 32 GB CORSAIR Dominator Platinum DDR4-2132 Memory ; Samsung 850 EVO 1TB SSD Drive.
0 Likes
Message 18 of 20

chandra.shekar.g
Autodesk Support
Autodesk Support

@sgwilliams ,

 

iLogic form is saved at "C:\Users\Public\Documents\Autodesk\Inventor 2019\Design Data\iLogic\UI". zip and send it us and make sure that information are non confidential. For more details, go through below help documentation link.

 

https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcartic...

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 19 of 20

sgwilliams
Collaborator
Collaborator

I have attached a jpg screenshot of my project settings and the zip file as you requested.

Work Station : Custom built, Liquid Cooled, Asus Pro WS X570-ACE Motherboard; AMD Ryzen 9 3900X 3.8 GHz 12-Core Processor; ASUS TUF Gaming NVIDIA GeForce RTX 3060 V2 OC Edition Video Card; 32 GB CORSAIR Dominator Platinum DDR4-2132 Memory ; Samsung 850 EVO 1TB SSD Drive.
0 Likes
Message 20 of 20

chandra.shekar.g
Autodesk Support
Autodesk Support

@sgwilliams ,

 

Unfortunately, date issue is not reproducible at my system. To demonstrate the same, a screencast video is prepared and uploaded to below link.

 

https://autode.sk/2BCAuul

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes