non-empty VBA

non-empty VBA

mikeh4
Collaborator Collaborator
772 Views
8 Replies
Message 1 of 9

non-empty VBA

mikeh4
Collaborator
Collaborator
Good Morning All
Setting up to switch to IV11 from 10 and I migrated my templates to 11 and now when I do a new IDW from my template, that has a VBA built into it to calculate mass, I'm getting the attached error telling me that I've got a non-empty VBA in this document. Is this error anything to be concerned with because an IDW never goes into an assembly anyway.

I'm very unknowledgable in VBA.

Thanks much!
0 Likes
773 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable

This warning appears because of a limitation of
Microsoft's VBA.  If, for example, you have an "AutoSave" macro embedded
into a part template, and you create thousands of parts using this template,
when you attempt to save an assembly that contains a lot of these parts, you may
have many parts attempting to run the same macro simultaneously.  This will
cause problems, as confirmed by Microsoft.

 

However, with a drawing file, it is unlikely that
you would have more than a couple of IDW files open concurrently, so I would
think that the warning can be safely ignored.

 

It is my understanding that Autodesk incorporated
this warning beginning in Inventor 11.






brian r.
iwaskewycz


style="FONT-SIZE: 14pt; FONT-FAMILY: Verdana">cad systems
manager


style="FONT-SIZE: 14pt; FONT-FAMILY: Verdana">
href="http://www.corefurnace.com">core furnace systems

0 Likes
Message 3 of 9

karthur1
Mentor
Mentor
FWIW, This warning message can't be turned off. It is a know issue.
0 Likes
Message 4 of 9

mikeh4
Collaborator
Collaborator
FYI

It does throw up a prompt that we can turn that prompt off permanantly, I did and it worked.

I can go back into Application Options and the Prompt tab and turn that prompt back on.

Thanks
0 Likes
Message 5 of 9

Anonymous
Not applicable

It can't be disabled?  I would think that
seeing that warning would get on one's nerves quite quickly then...






brian r.
iwaskewycz


style="FONT-SIZE: 14pt; FONT-FAMILY: Verdana">cad systems
manager


style="FONT-SIZE: 14pt; FONT-FAMILY: Verdana">
href="http://www.corefurnace.com">core furnace systems

0 Likes
Message 6 of 9

mikeh4
Collaborator
Collaborator
Brian

Thanks for your input. We've been using this VBA for several releases with no issues. I figured they just added that prompt in 11 too.

Thanks again!
0 Likes
Message 7 of 9

karthur1
Mentor
Mentor
I can disable it for the session of Inventor that I have running. When I close/restart Inventor that setting is lost.
0 Likes
Message 8 of 9

joe.zammit
Explorer
Explorer
I have the same issue were you able to use your templates again as it asks me to migrate them across to 11 , which i already have and still will not open them ??
0 Likes
Message 9 of 9

mikeh4
Collaborator
Collaborator
Yes we've been using it. Once we migrated the Template and saved it, its all been good. We do get the error for every IDW we create (unless we check the box do not show again this session, then we only see the error on the first new IDW).
0 Likes