Rule compile errors in {rulename}

Rule compile errors in {rulename}

AlexFielder
Advisor Advisor
1,093 Views
10 Replies
Message 1 of 11

Rule compile errors in {rulename}

AlexFielder
Advisor
Advisor

I have an iLogic rule that I've amended over the course of several months. I am supposed to hand it to my customer for them to use shortly.

 

Last time I checked, the rule was running correctly. (In December of 2018!)

 

Now when I attempt to run it I am presented with this:

 

2019-01-29 14_35_01-Rule Compile Errors in SaveAs_PDF_(Single_Or_Multi-sheet), in G0918-07 FOLDING T.png2019-01-29 14_34_22-Edit Rule_ SaveAs_PDF_(Single_Or_Multi-sheet).png

What the "F" is going on? Every time I attempt to run the rule the "missing file" is a different .dll file.

 

 

0 Likes
Accepted solutions (2)
1,094 Views
10 Replies
Replies (10)
Message 2 of 11

bradeneuropeArthur
Mentor
Mentor

please upload the code!

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 11

AlexFielder
Advisor
Advisor
Accepted solution

I just found the solution to this and I figured it is worth sharing:

 

When this error occurs, as you can see in the above error message it points to the %temp% folder.

Within this folder Inventor creates the following randomly named files:

2019-01-29 14_40_54-Temp.png

Because I was curious as to what these files contain, I opened a couple of them and the result came in one of the *.out files thus:

2019-01-29 14_44_49-C__Users_Alex.Fielder_AppData_Local_Temp_njkldpg4.out - Notepad++ [Administrator.png

So changing the highlighted line above from this:

For Each oTextBox as TextBox In oTitleBlock.Definition.Sketch.TextBoxes

To this:

For Each oTextBox as Inventor.TextBox In oTitleBlock.Definition.Sketch.TextBoxes

fixes the issue.

 

I thought this kind of error would have been picked up within the iLogic window itself, but apparently not.

 

Is that asking too much or on the "To-Do" list somewhere?

 

Is this behaviour documented in a help file/page because it should be if not, yes?

0 Likes
Message 4 of 11

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Actually this is programming basics.

This is solved with:

Using Inventor

imports inventor

in the start of your modules.

 

Regards,

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 11

Anonymous
Not applicable

I need Help with the same issue. I only have one computer in my department that cannot use the code I created. He gets the same error as the other guy. Please help to solve this. I need this guy to use I-logic and I have tried everything to get this to work. 

0 Likes
Message 6 of 11

bradeneuropeArthur
Mentor
Mentor

Hi @Anonymous ,

 

Please upload your complete code.

 

Regards,

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 11

Anonymous
Not applicable

It's not the code. we have several other computers using the same version of inventor (2015) with no problems. And On the one that is messed up, it is any/all I-logic. from the simplest code to launch a form upon opening the model to something like this:

If Header_NPS=.5 Then
Header_OD=.84

Else If Header_NPS=.75 Then
Header_OD=1.05

Else If Header_NPS=1 Then
Header_OD=1.315

Else If Header_NPS=1.25 Then
Header_OD=1.66

Else If Header_NPS=1.5 Then
Header_OD=1.9

Else If Header_NPS=2 Then
Header_OD=2.375

Else If Header_NPS=2.5 Then
Header_OD=2.875

Else If Header_NPS=3 Then
Header_OD=3.5

Else If Header_NPS=3.5 Then
Header_OD=4

Else If Header_NPS=4 Then
Header_OD=4.5

Else If Header_NPS=4.5 Then
Header_OD=5

Else If Header_NPS=5 Then
Header_OD=5.563

Else If Header_NPS=6 Then
Header_OD=6.625

Else If Header_NPS=8 Then
Header_OD=8.625

Else If Header_NPS=10 Then
Header_OD=10.75

Else If Header_NPS=12 Then
Header_OD=12.75

Else Header_OD=Header_NPS


End If

Simple parameter modification. Most of the crew does not touch complex code. I do not know why the computer is the only one messed up and how to ix it. Any help to solve this issue would be appreciated.

0 Likes
Message 8 of 11

bradeneuropeArthur
Mentor
Mentor

hi,

 

Maybe the regional settings!

 

point and comma!!!

 

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 11

Anonymous
Not applicable

Where would I check this? And if that doesn't work do you have any other suggestions? You suggested above that this could be solved through inventor. I was hoping that complete uninstall reinstall would solve the issue. It has not. 

 

0 Likes
Message 10 of 11

bradeneuropeArthur
Mentor
Mentor

in windows start>>

type region...

 

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

Anonymous
Not applicable
The regional settings are the same on each computer.


0 Likes