ilogic rule suddenly not working

ilogic rule suddenly not working

Anonymous
Not applicable
561 Views
3 Replies
Message 1 of 4

ilogic rule suddenly not working

Anonymous
Not applicable

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

0 Likes
562 Views
3 Replies
Replies (3)
Message 2 of 4

GeorgK
Advisor
Advisor

Can you share the code and drawing?

0 Likes
Message 3 of 4

Anonymous
Not applicable

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

0 Likes
Message 4 of 4

Anonymous
Not applicable

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. 

0 Likes