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: 

Need to reload an addin for each file

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
TONELLAL
330 Views, 2 Replies

Need to reload an addin for each file

Hello,

I have an addin which displays a form, then when I clic a button operations are launched.

The form is no modal, so I display it, select objects, apply, selct objects, apply,... then close the form with another button (form.close).

All functions, but only on the first opend file : I open the file, use the addin, close the form. I open another file, the addin is always loaded, but when I clic on the icon to display the form nothing happens... I have to unload the addin and reload it.

Where is the problem ?

 

 

2 REPLIES 2
Message 2 of 3
Ralf_Krieg
in reply to: TONELLAL

Hello

 

I think with form.close the form is destroyed, so a form.show later won't work. Try from.hide instead form.close.


R. Krieg
RKW Solutions GmbH
www.rkw-solutions.com
Message 3 of 3
TONELLAL
in reply to: Ralf_Krieg

I thought it was something like that...

 

The Onexecute event is only :

Sub oRibbonButton_NewButton_OnExecute(....)

    form.Show()

EndSub

 

BUT...

...the form is not delared in the sub. I moved the declaration in the sub, it seems to be right !

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

Post to forums  

Autodesk Design & Make Report