Inventor First Run

Inventor First Run

msabotto
Contributor Contributor
285 Views
5 Replies
Message 1 of 6

Inventor First Run

msabotto
Contributor
Contributor

Is there a way to understand, from an Addin point of view, that the current account is lunching Inventor for the very first time?

I'm trying to understand if I could connect to this "state" and start a simple Wizard to help the user configuring Inventor.

Any idea please?

thanks

0 Likes
286 Views
5 Replies
Replies (5)
Message 2 of 6

msabotto
Contributor
Contributor

really nothing to share on this topic?

 

thanks

0 Likes
Message 3 of 6

JelteDeJong
Mentor
Mentor

The start class of your addin has a method called "Activate" (which implements "ApplicationAddInServer.Activate") That method has a parameter FirstTime. I think you can use that parameter for what you want.

JelteDeJong_0-1666376901030.png

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 4 of 6

tobias_wiesendanger
Advocate
Advocate

I think that wont help him because this just reports if the addin gets loaded the first time in the running session. This is false after reset ribbon as far as I remember.

 

But there is something that could help and thats the registry.

 

StartCount.png

This is the startcount. In my case Inventor was started 172 times. Maybe this is 0 when you have a fresh install.

0 Likes
Message 5 of 6

msabotto
Contributor
Contributor

Thanks for the suggestion, but as the documentation says, it is TRUE or FALSE depending on your Addin loading process and not Inventor.

If I well remember it could become TRUE again if you change the Addin FileVersion while evolving the addin itself (not completely sure).

 

Many Thanks 

0 Likes
Message 6 of 6

msabotto
Contributor
Contributor
Cool suggestion, it is seems to be useful for what I'm trying to realize, many thanks for this tip.
0 Likes