iLogic Error

iLogic Error

Anonymous
Not applicable
982 Views
13 Replies
Message 1 of 14

iLogic Error

Anonymous
Not applicable

I have an assembly which is driven by ilogic and uses iparts.

 

Occasionally I start getting errors and I'm not entirely sure why. It can be working fine one minute, and the next I will recieve the pictured error.

 

Anyone have any idea why this happens?

 

 

 

0 Likes
983 Views
13 Replies
Replies (13)
Message 2 of 14

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous,

 

Just guessing that some iparts may be belongs to library folder. If that is case, refer suggestion in the below link.

 

https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcarticles/iLogic-API-VBA-error-when-modifying-write-protected-library-documents.html

 

Can you please provide non confidential data and steps to test the behavior?

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 14

Anonymous
Not applicable

Hi Chandra,

 

Thanks for getting back to me. The iParts are actually not in the library. Often deleting my working directory and getting the files again from vault fixes the issue.

 

But it can be tedious to do this every few uses of the main assembly.

 

Do you have any idea what the problem could be?

 

0 Likes
Message 4 of 14

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous ,

 


Often deleting my working directory and getting the files again from vault fixes the issue.


How is the deletion of working directory happening? Is it automatic or manually deleted?

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 5 of 14

Anonymous
Not applicable

It's a manual process

0 Likes
Message 6 of 14

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous,

 

If the folder is deleted manually, error persists to continue.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 7 of 14

Anonymous
Not applicable

Why does that have an effect?

0 Likes
Message 8 of 14

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous ,

 

Due to non existence of iPart in working folder, error is throwing from iLogic.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 9 of 14

Anonymous
Not applicable

That error shows up when the iparts are in the woking directory, I usually fix it by deleting and re-downloading.

Do you have any idea why it would show that error even when the files are in my working directory?

0 Likes
Message 10 of 14

Anonymous
Not applicable

Have you tried to define or add the filepath from the parts to the code?

0 Likes
Message 11 of 14

Anonymous
Not applicable

The iPart is driven by the row change code within ilogic.

How would I incorporate the path into that?

 

Thanks,

Ahmed.

0 Likes
Message 12 of 14

Anonymous
Not applicable

Each configuration in an iPart has his own file.

Usually the iPart files will be in a folder wich u can usually find in the folder where you saved the iPart.

0 Likes
Message 13 of 14

Anonymous
Not applicable

The code is currently as pictured.

The assembly drives the ipart row to change, depending on a parameter selection.

 

Is this not the correct way to do it?

 

It'll work a few times, and then there are times where I have to delete all the files and get them again because it throws an error.

0 Likes
Message 14 of 14

Anonymous
Not applicable

It should be a correct way to do it but I don't use iParts often becouse it doesn't create adjustable parts easy.

Also I have a little guide for how to update parts and safe them with unique names based on parameters maybe this will help you out with an drop down inputbox.

 

https://forums.autodesk.com/t5/inventor-forum/ilogic-advanced-guide-for-common-problems-with-snippet...

 

Please take a look at part 5 & 6. Also snippets are included under the document file.

0 Likes