iLogic rule triggers in Job Processor

iLogic rule triggers in Job Processor

samer.kanaah
Participant Participant
96 Views
3 Replies
Message 1 of 4

iLogic rule triggers in Job Processor

samer.kanaah
Participant
Participant
Hello,
 
A customer is using Autodesk Inventor with license on machines running the Job Processor.
They have an external iLogic rule triggered on document open (all extensions) which is located on C disk :
C:\CAD\CONFIG\INVENTOR_2024\iLogic\Import_Inventor_Configuration.iLogicVb
 
They sometimes get an error appearing on screen:
Error on line 3 of the rule: Import_Inventor_Configuration, in the document: example.iam
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
 
 
''**iLogic system code start**
Imports Inventor
''**iLogic system code end**

Public Partial Class ThisRule ''**iLogic system**
Public Sub Main() Implements IRuleInterface.Main ''**iLogic system**
If ThisApplication.GeneralOptions.UndoFileSize = 1024 Or ThisApplication.DisplayOptions.UseDocumentDisplaySettings = True Then
ThisApplication.GeneralOptions.UndoFileSize = 8191
ThisApplication.ImportApplicationOptions("C:\Workspace_2024\Configurations\Inventor.xml") 
End If
If ThisApplication.DesignProjectManager.ActiveDesignProject.Name.ToUpper <> "GROUPE" Then
ThisApplication.Documents.CloseAll()
ThisApplication.DesignProjectManager.DesignProjects.AddExisting("C:\Workspace_2024\Groupe.ipj").Activate
End If

End Sub ''**iLogic system**
End Class ''**iLogic system**
 
The issue is intermittent.
The customer wants to keep this rule to be sure that each Job Pro is well configured on any time (but I personally find this rule unnecessary because Inventor shouldn't lose its options when working with Job Pro ?).
 
Are iLogic rules on document events fully supported in Job Processor?
Any idea on why we have some errors ?
 
Thanks a lot
0 Likes
Accepted solutions (1)
97 Views
3 Replies
Replies (3)
Message 2 of 4

Markus.Koechl
Autodesk
Autodesk

How does your customer ensure that the job processor uses the licensed Inventor? The error indicates that VaultInventorServer attempts to execute the code (line 7 in your post here); this will fail because InventorServer expects ThisServer instead of ThisApplication.

Besides these details, I agree with you and recommend not using this rule to configure the Inventor instance used for jobs.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes
Message 3 of 4

samer.kanaah
Participant
Participant

They configured the machines to use Inventor and not InventorServer by modifying the .exe.config files in the install directory.

I have the impression that the dialog box wouldn't even appear if this weren't the case (according to the image in the first message).

We also see Inventor in the task manager.


The code in the first message shows the iLogic rule "Import_Inventor_Configuration.iLogicVb".
I'm not sure to understand where is the error you said at line 7 ?


The error is at line 3 (in my post it's line 2 because the first line is in fact empty) : 

Imports Inventor

 

But aside from the fact that this isn't recommended, what explanation should we give to the client?

0 Likes
Message 4 of 4

Markus.Koechl
Autodesk
Autodesk
Accepted solution

@samer.kanaah: We need more context; I suggest raising a support case. Reach out to me directly to discuss what to include in the submission.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes