<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: My first Addon (HELP!!!!) in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6250018#M111142</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also trying to create ann addon. I followed this thread but I get the following error..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;The command "call "%VS140COMNTOOLS%vsvars32"
			mt.exe -manifest "C:\Users\jeee\AppData\Local\Temporary Projects\InventorAddIn1\InventorAddIn1.X.manifest" -outputresource:"C:\Users\jeee\AppData\Local\Temporary Projects\InventorAddIn1\bin\Debug\InventorAddIn1.dll";#2" exited with code 9009.		&lt;/PRE&gt;&lt;P&gt;Any ideas? What version of VS are you using?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2016 13:37:07 GMT</pubDate>
    <dc:creator>Jef_E</dc:creator>
    <dc:date>2016-04-04T13:37:07Z</dc:date>
    <item>
      <title>My first Addon (HELP!!!!)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6245662#M111135</link>
      <description>&lt;P&gt;I have lots of custom tools as VB &amp;amp; macros, I'm trying to improve on them and change them into Addons.&lt;/P&gt;&lt;P&gt;The problem I am having (have been hitting my head against a wall trying to solve this) What I'm trying to do is have an addon that fires when the user creates a new part document. I can have a form open up fine, but I can't get the form to talk to the active inventor part&amp;nbsp;document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I have added this into the StandardAddinServer.Vb section:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;Public Sub oAppEvents_OnNewDocument(ByVal DocumentObject As Inventor._Document, ByVal BeforeOrAfter As Inventor.EventTimingEnum, ByVal Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum) Handles oAppEvents.OnNewDocument

Dim oApp As Application = m_inventorApplication

Dim Doc As Document = oApp.ActiveDocument

If Doc.DocumentType = DocumentTypeEnum.kPartDocumentObject Then

Dim DwgForm As New Form1

DwgForm.Show()

End If

End Sub&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Consolas" size="2"&gt;And this code in my form:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#000000" face="Consolas" size="2"&gt;Imports Inventor
Imports System.Drawing
Imports System.Windows.Forms
Imports Microsoft.Win32
Imports System.Runtime.InteropServices


Public Class Form1

    'Inherits System.Windows.Forms.Form
    'Dim form2 As New DimChange
#Region "Data Members"
    Private Shared m_inventorApplication As Inventor.Application
    'Private Shared form2 As DimChange
#End Region

#Region "Properties"
    Public Shared Property InventorApplication() As Inventor.Application
        Get
            InventorApplication = m_inventorApplication
        End Get
        Set(ByVal Value As Inventor.Application)
            m_inventorApplication = Value
        End Set
    End Property
  
#End Region

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim oDoc As Document = InventorApplication.ActiveDocument



    End Sub
End Class&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Consolas" size="2"&gt;But I keep getting the error "Object reference not set to an instance of an object" (Attached)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Consolas" size="2"&gt;If anyone can help with this that would be great, like I said it's my first time trying to write an addon, I have gone through the inventor samples and tried to work it out for myself but with no luck.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 07:50:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6245662#M111135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-01T07:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: My first Addon (HELP!!!!)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6245712#M111136</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;paste this to new empty document (eg. Globals.vb)&lt;/P&gt;&lt;PRE&gt;Module Globals
	
	Public InventorApplication As Inventor.Application
    
End Module&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in your&amp;nbsp;&lt;SPAN&gt;StandardAddinServer.vb: (replace XXX with new Guid, look for a generator in VB)&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Imports Inventor
Imports System.Runtime.InteropServices
Imports System.Configuration

Namespace MyAwesomeAddin
    &amp;lt;ProgId("MyAwesomeAddin.StandardAddInServer"), _
    GuidAttribute("XXXXXXXX-XXXX-XXXX-XXX-XXXXXXXXXXXX")&amp;gt; _
    Public Class StandardAddInServer
        Implements Inventor.ApplicationAddInServer&lt;BR /&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Private&lt;/SPAN&gt;&amp;nbsp;m_AppEvents&amp;nbsp;&lt;SPAN&gt;As&lt;/SPAN&gt;&amp;nbsp;ApplicationEvents 

    Public Sub Activate(ByVal AddInSiteObject As Inventor.ApplicationAddInSite, ByVal FirstTime As Boolean) Implements Inventor.ApplicationAddInServer.Activate
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Initialize AddIn members&lt;/STRONG&gt;&lt;/FONT&gt;
        InventorApplication = AddInSiteObject.Application
			   
	&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Add event handlers&lt;/STRONG&gt;&lt;/FONT&gt;
        m_AppEvents = InventorApplication.ApplicationEvents
        AddHandler m_AppEvents.OnSaveDocument, AddressOf Me.m_Events_OnSaveDocument
        AddHandler m_AppEvents.OnOpenDocument, AddressOf Me.m_Events_OnOpenDocument&lt;BR /&gt;        AddHandler m_AppEvents.OnNewDocument, AddresOf Me.m_Events_OnNewDocument
    End Sub&lt;BR /&gt;
    Public Sub Deactivate() Implements Inventor.ApplicationAddInServer.Deactivate
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Remove event handlers&lt;/STRONG&gt;&lt;/FONT&gt;
	RemoveHandler m_AppEvents.OnSaveDocument, AddressOf Me.m_Events_OnSaveDocument
	RemoveHandler m_AppEvents.OnOpenDocument, AddressOf Me.m_Events_OnOpenDocument&lt;BR /&gt;        RemoveHandler m_AppEvents.OnNewDocument, AddressOf Me.m_Events_OnNewDocument
	m_AppEvents = Nothing

        Marshal.ReleaseComObject(InventorApplication)
        InventorApplication = Nothing

        System.GC.WaitForPendingFinalizers()
        System.GC.Collect()
    End Sub

    Private Sub m_Events_OnSaveDocument(ByVal DocumentObject As Inventor._Document, ByVal BeforeOrAfter As Inventor.EventTimingEnum, _
        ByVal Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum)
        If BeforeOrAfter = EventTimingEnum.kBefore Then
        	&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Something to do before document saves&lt;/STRONG&gt;&lt;/FONT&gt;
        Else If BeforeOrAfter = EventTimingEnum.kAfter Then
        	&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Something to do after document saves&lt;/STRONG&gt;&lt;/FONT&gt;
        End If
    End Sub&lt;BR /&gt;&lt;BR /&gt;    Private Sub m_Events_OnNewDocument(ByVal DocumentObject As Inventor._Document)&lt;BR /&gt;        If DocumentObject.DocumentType = DocumentTypeEnum.kPartDocumentObject Then&lt;BR /&gt;            Dim DwgForm As New Form1()&lt;BR /&gt;            &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' .ShowDialog for modal form, .Show for non-modal form&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;            DwgForm.ShowDialog()&lt;BR /&gt;        End If&lt;BR /&gt;    End Sub&lt;BR /&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;End&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;Class&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;End&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;Namespace&lt;/SPAN&gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And in you Form code:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Imports Inventor

Public Class Form1
&lt;BR /&gt;    Private oDoc As Inventor.Document&lt;BR /&gt;&lt;BR /&gt;    Public Sub New()&lt;BR /&gt;        &lt;SPAN&gt;Me&lt;/SPAN&gt;.InitializeComponent()&lt;BR /&gt;        oDoc = InventorApplication.ActiveDocument&lt;BR /&gt;    End Sub&lt;BR /&gt;
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' It'll show you the document's display name on Button1 click&lt;BR /&gt;&lt;/STRONG&gt;        &lt;STRONG&gt;' It's just to test it...&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;        MsgBox(oDoc.DisplayName)
    End Sub&lt;BR /&gt;
End Class&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It's all written from head, so there might be some errors, but I believe the debuger will&amp;nbsp;let you know about them.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 08:45:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6245712#M111136</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2016-04-01T08:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: My first Addon (HELP!!!!)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6246005#M111137</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting a couple of errors, which I don;t' understand&lt;/P&gt;&lt;P&gt;for this line (specifically the&amp;nbsp; &lt;EM&gt;Me.m-Events_OnsOpenDocument&lt;/EM&gt;&amp;nbsp; part.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;AddHandler m_AppEvents.OnOpenDocument, AddressOf Me.m_Events_OnOpenDocument&lt;/PRE&gt;&lt;P&gt;I get this error: 'm_Events_OnOpenDocument' is not a member of 'HowdenNewObject.HowdenNewObject.StandardAddInServer'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;and the same for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;AddHandler m_AppEvents.OnNewDocument, AddressOf Me.m_Events_OnNewDocument&lt;/PRE&gt;&lt;P&gt;Error&amp;nbsp;3&amp;nbsp;'m_Events_OnOpenDocument' is not a member of 'HowdenNewObject.HowdenNewObject.StandardAddInServer'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if there's anything you can suggest that would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 12:07:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6246005#M111137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-01T12:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: My first Addon (HELP!!!!)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6246133#M111138</link>
      <description>&lt;P&gt;Oh yea, well, there's missing one Sub_Routine, you can eighter delete the lines with the error (one for AddHandler and one for RemoveHandler) or add this Sub below the others in the Class (it muss be above "&lt;SPAN&gt;End&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;Class").&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have added the "&lt;/SPAN&gt;m_Events_OnSaveDocument" and "m_Events_OnOpenDocument" only because they might be handy for your future use.&lt;/P&gt;&lt;P&gt;E.g. Im ussing the Before and After document open to count how long it takes to open realy big assys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Private Sub m_Events_OnOpenDocument(ByVal DocumentObject As Inventor._Document, ByVal FullDocumentName As String, _
    ByVal BeforeOrAfter As Inventor.EventTimingEnum, ByVal Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum)
    If BeforeOrAfter = EventTimingEnum.kBefore Then
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Something to do before the document opens&lt;/STRONG&gt;&lt;/FONT&gt;
    Else If BeforeOrAfter = EventTimingEnum.kAfter Then
        &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Something to do after the document opens&lt;/STRONG&gt;&lt;/FONT&gt;
    End If
End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 13:08:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6246133#M111138</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2016-04-01T13:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: My first Addon (HELP!!!!)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6248298#M111139</link>
      <description>Mike,&lt;BR /&gt;Thanks again for the help thus far, am almost there!&lt;BR /&gt;When I try debugging the code I get right up to the public sub new routine in the form, but no matter what I try I can't get past the line&lt;BR /&gt;"oDoc = m_inventorApp.ActiveDocument"&lt;BR /&gt;&lt;BR /&gt;I get the error message:&lt;BR /&gt;NullReferenceException was unhanded by user&lt;BR /&gt;Object reference not set to an instance of an object&lt;BR /&gt;Use the “new” keyword to create an object instance.&lt;BR /&gt;&lt;BR /&gt;the finish line is in sight, just need one last push to get over it.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Neil</description>
      <pubDate>Sat, 02 Apr 2016 22:53:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6248298#M111139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-02T22:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: My first Addon (HELP!!!!)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6249258#M111140</link>
      <description>&lt;P&gt;Hi, if you set up all as i suggested, than you should use this line in your form code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;oDoc = InventorApplication.ActiveDocument&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because it is declared in "&lt;SPAN&gt;Globals.vb".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 04:30:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6249258#M111140</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2016-04-04T04:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: My first Addon (HELP!!!!)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6249591#M111141</link>
      <description>&lt;P&gt;Got it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to put the line&amp;nbsp;into the Globals module, that's what did the trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;Public&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; oDoc &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;As&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; Inventor.&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Document&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for all you help! &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 09:49:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6249591#M111141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-04T09:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: My first Addon (HELP!!!!)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6250018#M111142</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also trying to create ann addon. I followed this thread but I get the following error..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;The command "call "%VS140COMNTOOLS%vsvars32"
			mt.exe -manifest "C:\Users\jeee\AppData\Local\Temporary Projects\InventorAddIn1\InventorAddIn1.X.manifest" -outputresource:"C:\Users\jeee\AppData\Local\Temporary Projects\InventorAddIn1\bin\Debug\InventorAddIn1.dll";#2" exited with code 9009.		&lt;/PRE&gt;&lt;P&gt;Any ideas? What version of VS are you using?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 13:37:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6250018#M111142</guid>
      <dc:creator>Jef_E</dc:creator>
      <dc:date>2016-04-04T13:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: My first Addon (HELP!!!!)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6251420#M111143</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;first, you should've have started your own thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second your problem is not code related. You have an issue with the compiler. I had the same.&lt;/P&gt;&lt;P&gt;Look&amp;nbsp;for "Post-Build Event" in your Project Options (I'm ussing SharpDevelop, so I cant tell you where exactly in VS it is).&lt;/P&gt;&lt;P&gt;Try to play with the "Post-Build Event" command line. I'm ussing this below, so try it and if it won't work then try something betwee it and your original command.&lt;/P&gt;&lt;PRE&gt;call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat" mt.exe -manifest "$(ProjectDir)$(AssemblyName).X.manifest" -outputresource:"$(TargetPath)";#2&lt;/PRE&gt;&lt;P&gt;Look in the folder and check if the file is there:&lt;/P&gt;&lt;P&gt;"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, try to look around, maybe "\Microsoft Visual Studio 9.0\" or smtg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or the issue might be in the manifest file itself. Does your's look like this, when you open it in text editor?&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&amp;lt;assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"&amp;gt;
  &amp;lt;assemblyIdentity name="My Assembly Name" version="1.0.0.0" /&amp;gt;
  &amp;lt;clrClass clsid="{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX}" 
            progid="MyAssembly.StandardAddInServer" 
            threadingModel="Both" 
            name="MyAssembly.MyAssembly.StandardAddInServer" 
            runtimeVersion="" /&amp;gt;
  &amp;lt;file name="MyAssembly.dll" hashalg="SHA1" /&amp;gt;&lt;/PRE&gt;&lt;P&gt;Instead of XXX...XXX you should generate new GUID. Look for GUID generator in VS. In SharpDevelop it is in "Edit &amp;gt; Insert &amp;gt; Insert New GUID"&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 04:38:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/my-first-addon-help/m-p/6251420#M111143</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2016-04-05T04:38:08Z</dc:date>
    </item>
  </channel>
</rss>

