Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
499 Views, 3 Replies

ilogic rule suddenly not working

Hi, wonder if anyone can help...

I have an ilogic rule to save a dxf that has been used for probably 5 years now and the code is unchanged. 

Suddenly and for no reason I am getting this error:

 

Capture3.PNG

 

Capture4.PNG

 

 

We have 6 people working in the design department and this has happened to one other colleague (he repaired it by reinstalling inventor) but the others are all fine using the exact same rule. 

Anyone else had this error before and know how to fix it?

Cheers, Finn

GeorgK
in reply to: Anonymous

Can you share the code and drawing?

Anonymous
in reply to: GeorgK

Here are the part and drawing files.

 

And the code is here:

SyntaxEditor Code Snippet

strFolder = ThisDoc.WorkspacePath() & "\Layouts and Details\DXFs\" & ThisDoc.FileName(False)
ThisDoc.Document.SaveAs(strFolder & (".dxf") , True)
MessageBox.Show("DXF file created/updated", "What a lovely drawing!")

And I have checked that the folder it is trying to save to definitely exists

Anonymous
in reply to: Anonymous

Twist to the story,

 

I have just replaced my template file with one from a colleague - important to note here that the files are the exact same - and now it is working fine. 

 

I double checked and the ilogic code is identical. 

 

Why would this happen? I am certain it is not a problem with the ilogic.