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: 

Code will run from VBA window but not from Inv/Macro?

1 REPLY 1
Reply
Message 1 of 2
dave_deane
425 Views, 1 Reply

Code will run from VBA window but not from Inv/Macro?

I custom edited some sample code and it will run from the VBA window, but when I run it from Inventor it errors out. I pasted a screen cast of what is happening below and the part file with the code.

Also notice, when I run from VBA the dialog does not display the current expression value but it works, when I run the macro from Inv it does initially return the current expression in the dialog box but it wont update.

http://screencast.com/t/ZmI2ZjU3M

Any help is much appreciated!
Thanks,
Dave

Edited by: dave.deane@power.alstom.com on May 24, 2010 9:57 AM Edited by: dave.deane@power.alstom.com on May 24, 2010 10:31 AM
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: dave_deane

Try replacing Userform1.textbox... with Me.textbox...

--
KWiKMcad
Kent Keller
wrote in message
news:6396177@discussion.autodesk.com...
I custom edited some sample code and it will run from the VBA window, but
when I run it from Inventor it errors out. I pasted a screen cast of what is
happening below and the part file with the code.

Also notice, when I run from VBA the dialog does not display the current
expression value but it works, when I run the macro from Inv it does
initially return the current expression in the dialog box but it wont
update.

http://screencast.com/t/ZmI2ZjU3M

Any help is much appreciated!
Thanks,
Dave

Edited by: dave.deane@power.alstom.com on May 24, 2010 9:57 AM

Edited by: dave.deane@power.alstom.com on May 24, 2010 10:31 AM

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

Post to forums  

Autodesk Design & Make Report