Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inventor VB Duplicate Option Explicit

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Nsteel
763 Views, 1 Reply

Inventor VB Duplicate Option Explicit

I'm in the process of creating a VB form for an inventor assembly.

The problem I am having is that when I open the file inventor is duplicating the line "option Explicit" to the ThisDocument code, so when it is opened it all fails. inventor is doing this whether I run the form or not, If I delete both it will add one instance in, which is fine and everything will still work, but if I close and re-open the document a second time I get the same error because it as added a second.

 

Can anyone offer some advice on this as I'm loosing it with inventor trying to fix it myself,

 

Ta,

 

1 REPLY 1
Message 2 of 2
rossano_praderi
in reply to: Nsteel

Hi, within your VBA editor you have to deselect the option "Require Variable Declaration".

 

Bregs

Rossano Praderi

 

 



--------------------------------------
If my post answers your question, please click the "Accept as Solution"
button. This helps everyone find answers more quickly!
---------------

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report