Imposible open VBA editor after Inventor assembly file crashed

Imposible open VBA editor after Inventor assembly file crashed

dibujocad
Enthusiast Enthusiast
570 Views
2 Replies
Message 1 of 3

Imposible open VBA editor after Inventor assembly file crashed

dibujocad
Enthusiast
Enthusiast
Hi everybody,

I posted a post about this topic last year, but I am still trying to tackle this issue.

I cannot open the VBA editor from an assembly file which crashed when the VBA Project was already loaded.

Basically, if I try to open the VBA editor from this file, Inventor crashes.

Whereas this issue only happens with this assembly file, VBA editor is opened correctly, as well as the macro runs  with other assembly files.

So, the macro cannot be the root of the problem. 

The assembly file didn't contain any iLogic rule nor macro.

Any suggestion how could I fix it or what is the problem? 

 

0 Likes
571 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

So, when you have the VBA Editor open (maybe opened when a different document was active), then you also open this problematic assembly document, I believe you should see a DocumentProject listed for that assembly within the Project Explorer window of the VBA Editor.  Expand the node beside that DocumentProject and check to see if there is any code within either the 'ThisDocument' node (under the Autodesk Inventor Professional Objects folder), and also under the 'Functions' node and each 'Module1' type nodes (within the Modules folder).  To check them, right click on them, right click on them, then choose 'View Code' from the right click menu.  If there is any code shown within any of them, try deleting that.  If you encounter problems trying to do any of that.  My next thought would be to create a new assembly document (don't copy it, or use save as), then try to transfer everything from the original over into the new assembly file, if you can.  There may be something corrupted about the file or something like that.  Just my 2 cents.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

dibujocad
Enthusiast
Enthusiast

Hi @ WCrihfield, thanks for your advices. I couldn't check if there was code inside "ThisDocument", because it was impossible open the visual basic editor when that assembly is opened.

I've tried to copy some parts from the assembly file to a new one, as you recommended me and it worked. So I guess the issue is that the assembly file is corrupted. That's sad, because I spent a lot of time creating such assembly and I had the hope not to have to rebuild it again. I'd try to copy it using the design assistant just in case it could work.

0 Likes