• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor

    Reply
    Active Member
    LiamSmith
    Posts: 9
    Registered: 12-07-2010
    Accepted Solution

    Debugging in Inventor 2012 with AddIn referenced through the .addin file.

    824 Views, 12 Replies
    04-13-2011 01:49 PM

    Has anyone been able to set up their debugging environment for 2012 Inventor AddIns? I have folllowed instructions from the 2012 Inventor SDK and the AddIn is correctly used by the app. However I keep getting messages about invalid or nonexistent debugging info and my breakpoints are never hit. Where should the .pdb file for the addin be placed?

    Employee
    Posts: 56
    Registered: 10-27-2009

    Re: Debugging in Inventor 2012 with AddIn referenced through the .addin file.

    04-18-2011 01:51 AM in reply to: LiamSmith

    Hi,

     

    In general, you should make sure that the pdb is in the same folder with the module. Please check the path of the addin module in your manifest file(.addin). If it is relative path, you should put the pdb to Inventor bin folder. If it is absolute path, you should put the pdb to the folder of the module.

     

    Thanks,

    Marshal



    Marshal Tu
    Sr SW Engineer
    MFG
    Autodesk, Inc.

    Active Member
    Posts: 8
    Registered: 12-08-2009

    Re: Debugging in Inventor 2012 with AddIn referenced through the .addin file.

    05-19-2011 01:06 PM in reply to: marshaltu
    I'm having an issue with debugging as well. I created a DLL for a dialog box for Inventor 2012. I have debug open an external program when debug begins. As soon as Inventor opens up, after the splash screen, I get a "DisconnectedContext was detected" error. Any help would be greatly appreciated.
    Employee
    Posts: 56
    Registered: 10-27-2009

    Re: Debugging in Inventor 2012 with AddIn referenced through the .addin file.

    05-24-2011 02:19 AM in reply to: fjrg1979

    Hi,

     

    The error is telling you that you have a pointer to a COM object that went away. It may be an issue in your codes. Please check.

     

    Thanks,

    Marshal



    Marshal Tu
    Sr SW Engineer
    MFG
    Autodesk, Inc.

    Active Member
    Posts: 8
    Registered: 12-08-2009

    Re: Debugging in Inventor 2012 with AddIn referenced through the .addin file.

    05-25-2011 10:02 AM in reply to: LiamSmith
    I started a Class Library from scratch. 1. I imported the Autodesk Inventor Object Library into my references. 2. Set the Debugger to open Inventor 2012 on run. 3. Set the Target Framework to 3.5 I continue to get the DisconnectedContext error. I don't have an issue with this working with Inventor 2011. Is there something I may be missing that needs to be added/changed for Inventor 2012?
    Active Member
    Posts: 8
    Registered: 12-08-2009

    Re: Debugging in Inventor 2012

    06-08-2011 07:58 AM in reply to: marshaltu
    I commented out all of my code and started the debug process. I recieved the same error. I know my code is not the problem. Is this an issue with Inventor 2012?
    Distinguished Mentor
    Posts: 979
    Registered: 09-15-2003

    Re: Debugging in Inventor 2012 with AddIn referenced through the .addin file.

    06-09-2011 03:57 AM in reply to: LiamSmith

    You will probably get more responses in the Inventor Customization forum.

    Sam B
    Inventor 2012 Certified Professional

    Please click "Accept as Solution" if this response answers your question.
    -------------------------------------------------------------------------------------
    Inventor Professional 2012 SP1
    Windows XP Pro 32-bit, SP3
    HP EliteBook 8730w; 4 GB RAM; Core™ 2 Duo T9400 2.53 GHz; Quadro FX2700M
    SpaceExplorer/SpaceNavigator NB, driver 3.7.18
    still waiting for a foreshortened radius dimensioning tool
    Mentor
    Posts: 272
    Registered: 05-30-2009

    Re: Debugging in Inventor 2012

    06-09-2011 05:19 AM in reply to: fjrg1979

    The loading Mechanism has slightly changed in inventor 2012

    Run wizards.exe in SDk Folder

    a template will be added to ur VS 2010

    to load an addin

    copy the dll file to

    \programdata\Autodesk \inventor 2012\addins

    and copy the manifest(.addin)  to the same directory

     

    this should work

    Please mark this response as Problem Solved if it answers your question.
    ----------------------------------------------------------------------------------------------
    Ravi Kumar MB,
    i7 860 Dell Studio XPS Win 7 64 bit 8Gb RAM
    Autodesk Product Design Suite Ultimate 2012
    Email: ravikmb5@gmail.com , skype id: ravikmb5,
    Active Member
    Posts: 8
    Registered: 12-08-2009

    Re: Debugging in Inventor 2012

    06-09-2011 06:21 AM in reply to: ravikmb5

    This is actually for a dll that is being triggered through iLogic.

    Active Member
    Posts: 8
    Registered: 12-08-2009

    Re: Debugging in Inventor 2012

    06-23-2011 08:23 AM in reply to: ravikmb5

    A coworker of mine is having the same issue running completely different code. We are trying to debug Inventor 2012 64-bit with Visual Studios 2010 Professional. We are setting up our assemblies to fire a DLL to perform some automation. We can manually attach Visual Studio to the Inventor process and debug works fine. However, this is an inconvenient/unnecessary step when trying to debug.