Inventor Customization

Reply
Mentor
bsee1
Posts: 211
Registered: ‎11-14-2011
Message 1 of 8 (1,170 Views)
Accepted Solution

Registry free addin won't load

1170 Views, 7 Replies
06-06-2012 12:10 PM

I've created a sletched symbol addin using the new registry free template, but I can't get it to load.  I'll list what I've already tried. Can someone help point out what the problem might be?

 

Here's a link to show what I see in inventor: https://dl.dropbox.com/u/46698764/ms6%20wont%20load.PNG

 

  • The addin builds with no errors in Visual Studio
  • I've double checked that the manifest file is embedded in the dll
  • The .addin file has the correct path to the dll file
  • The .addin file is located with the rest of the .addin files inside the Inventor programdata addins folder
  • The dll is located in the inventor 2012 install folder inside the bin folder
  • The addin is set to load on startup

Is there some kind of log that might show why an addin didn't load?  

*****************************
Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000

Inventor 2013
ETO 6.1
Mentor
matt_jlt
Posts: 216
Registered: ‎07-28-2007
Message 2 of 8 (1,148 Views)

Re: Registry free addin won't load

06-13-2012 10:29 PM in reply to: bsee1

Hi,

 

I'm almost positive your problem is coming from the fact that you have spaces in your addin name. Try replacing them with an underscore.

 

I had the same problem and it took me ages to work out why it wouldn't load. It was very frustrating.

 

Regards, Matt.

Mentor
bsee1
Posts: 211
Registered: ‎11-14-2011
Message 3 of 8 (1,143 Views)

Re: Registry free addin won't load

06-14-2012 05:24 AM in reply to: matt_jlt

I just removed all the spaces in the dll name, and anywhere else it was referenced in the code.  I also removed the spaces from the .addin file and config files.  It still didn't work.

 

Any other ideas? I'm really looking for some kind of error log. Inventor can see the addin, but somethign must be going wrong when it tries to load.  I don't know where to look for an error log for registry free addins.

*****************************
Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000

Inventor 2013
ETO 6.1
Mentor
FarrenYoung
Posts: 263
Registered: ‎07-13-2009
Message 4 of 8 (1,137 Views)

Re: Registry free addin won't load

06-14-2012 11:58 AM in reply to: bsee1

If you haven't already, you should make sure your dll is built for .Net framework 3.5 and not 4.0

--Farren

************************************************************************************
If this post helps, please click the "thumbs up" to give kudos
If this post answers your question, please click "Accept as Solution"
************************************************************************************
Mentor
bsee1
Posts: 211
Registered: ‎11-14-2011
Message 5 of 8 (1,131 Views)

Re: Registry free addin won't load

06-14-2012 01:42 PM in reply to: FarrenYoung

Thank you. That solved half of my problem.  Now that I have it working, I'll leave this here for anyone else that has trouble.

 

To build a registry free addin, start here:http://modthemachine.typepad.com/my_weblog/2012/02/migrate-net-add-ins-to-registry-free.html

 

  • Make sure your addin contains no spaces
  • Develop using .NET 3.5
  • Your .addin file must not contain blank lines

If you develop with .NET 4, Inventor will see your addin, but not load it

If your .addin file has blank lines, Inventor will not even see your addin

*****************************
Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000

Inventor 2013
ETO 6.1
New Member
davidhog
Posts: 1
Registered: ‎09-08-2012
Message 6 of 8 (1,048 Views)

Re: Registry free addin won't load

09-08-2012 12:02 PM in reply to: bsee1

I am having the same problem. I checked the items from the previous posts with on luck.

the Lab_10_Complete_AddIn_Add_To_Ribbon works just fine. I am working in C#. Inventor sees the Addin but will not load it. and in the "Debug" window I get a yellow ! icon on the break point.

I noticed when debuging the Autodesk sample that inventor pauses during it's load until the addin is built. On mine it just starts like normal ( ie. my addin isn't loading). I have tried several different attemps at a simple addin using both VB.net and C#. Following the tutorials on Mod the Machine with the same result. Any clues?

Win 7 Ult. x64 VS2010.

Valued Mentor
JohanLarsson
Posts: 425
Registered: ‎06-14-2005
Message 7 of 8 (1,022 Views)

Re: Registry free addin won't load

09-19-2012 11:02 AM in reply to: FarrenYoung

FarrenYoung wrote:

If you haven't already, you should make sure your dll is built for .Net framework 3.5 and not 4.0


Is there a way to be able to ues .net 4.0 in Inventor 2012?

-------------------------------------------------------------------------
Inventor Professional 2012 SP1 (25 seats with subscription)
Windows 7 64 bit
Lenovo D20, 12 GB RAM, Intel Xeon X5687 3.6 GHz, SSD
Quadro 4000, driver 8.17.12.9573, dual monitors
SpacePilot, driver version 6.15.3 Firmware 3.12
Mentor
FarrenYoung
Posts: 263
Registered: ‎07-13-2009
Message 8 of 8 (545 Views)

Re: Registry free addin won't load

08-02-2013 08:26 AM in reply to: JohanLarsson
I know this thread is very old, but I just noticed this question.

Yes you can use .NET 4.0 in Inventor 2012, but not with registry free addins. You will have to use the registry based addin method in order for it to load properly.
--Farren

************************************************************************************
If this post helps, please click the "thumbs up" to give kudos
If this post answers your question, please click "Accept as Solution"
************************************************************************************

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube