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: 

Active method is not called

1 REPLY 1
SOLVED
Reply
Message 1 of 2
jordanmarr
263 Views, 1 Reply

Active method is not called

I am attempting to create a new Inventor 2014 add-in.  When I launch Inventor 2014 from Visual Studio in debug mode, the breakpoint in the constructor of my Inventor.ApplicationAddInServer subclass is hit;  however, my breakpoint in the Activate method is never hit.  

When I view the addins dialog, I can see my addin, but it is unloaded.  

 

Here are some more details about my configuration:

- Win7 x64

- Inventor 2014 (SP1)

- my manifest file is being properly embedded in the dll (I can see it when I drag the dll into Visual Studio)

- My project is .Net 4.0 framework

- I am using VS2012, but I have also tried with VS2010 with the same results

- My guids match in my .addin file, .manifest, and my ApplicationAddInServer class

 

I'll be happy to provide any other details or to package and send my code for review.

 

Thanks,

Jordan

 

1 REPLY 1
Message 2 of 2
jordanmarr
in reply to: jordanmarr

SOLUTION:
After much comparing to the sample project, the fix in my case was to check "Make assembly COM-visible".
Steps (for C#):
1) Go to project properties
2) On the Application tab click the Assembly Information button
3) Check Make assembly COM-Visible

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

Post to forums  

Autodesk Design & Make Report