iLogic Error when using Task Scheduler

iLogic Error when using Task Scheduler

ThomasRambach
Advisor Advisor
424 Views
1 Reply
Message 1 of 2

iLogic Error when using Task Scheduler

ThomasRambach
Advisor
Advisor

I have an external iLogic rule running on-save for assemblies and drawings that updates iProperties. It works well normally but sometimes when running Task Scheduler for multiple files it results in warning messages. 

 

 The warning is 'Rule compile errors in... The process cannot access the _.vb file because it is being used by another process' 

 

It seems like Inventor iLogic has a lag where it's trying to run the code again on the next file before it can finish processing the last file. Any ideas?

 

iLogicError.png

0 Likes
425 Views
1 Reply
Reply (1)
Message 2 of 2

Lewis.Young
Collaborator
Collaborator

Hello,

 

Without seeing your code it's hard to tell, but you could try adding in a time delay at a specific pont and see if that helps.

 

SyntaxEditor Code Snippet

System.Threading.Thread.CurrentThread.Sleep(1000)

 

The value is in millisecs, so each thousand is equivalent to 1 sec

 

Lewis Young
Windows 7 x64 - 32GB Ram
Intel Xeon E5-1620 v2 @ 3.70GHz
nVidia Quadro M2000 - 4GB
Inventor Professional 2017.3
Vault Basic 2017
3ds Max 2018

0 Likes