Inventor Customization

Inventor Customization

Reply
Mentor
TONELLAL
Posts: 159
Registered: ‎01-17-2010
Message 1 of 3 (123 Views)
Accepted Solution

Need to reload an addin for each file

123 Views, 2 Replies
02-13-2013 07:39 AM

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 ?

 

 

Mentor
krieg
Posts: 176
Registered: ‎11-22-2009
Message 2 of 3 (115 Views)

Re: Need to reload an addin for each file

02-13-2013 12:08 PM 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.

Mentor
TONELLAL
Posts: 159
Registered: ‎01-17-2010
Message 3 of 3 (103 Views)

Re: Need to reload an addin for each file

02-14-2013 02:06 AM in reply to: 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 !

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.