<?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: 2013 API CodeRun error in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3526670#M7549</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had some follow up discussions with my colleagues from the Development and the primary suspect still seems to be VS 2012. Since VS 2012 is still not supported with NW - can you please try compiling CodeRun with VS 2010 and see if that works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Saikat&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jul 2012 17:59:20 GMT</pubDate>
    <dc:creator>saikat</dc:creator>
    <dc:date>2012-07-04T17:59:20Z</dc:date>
    <item>
      <title>2013 API CodeRun error</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3496920#M7544</link>
      <description>&lt;P&gt;Hi there! I am able to run the AppInfo sample project, but not able to run the CodeRun example in the Navisworks 2013 API.&lt;/P&gt;&lt;P&gt;What I did is open the Examples.sln solution with all the examples in VS2012. Then build the CodeRun project (get a CodeRun.ADSK.dll) and CodeRunLib project (get a CodeRunLib.dll). Then I created a CodeRun.ADSK folder in &amp;lt;NaviFolder&amp;gt;\Plugins and copy the CodeRun.ADSK.dll; created a Compilers folder in the CodeRun.ADSK folder and put the CodeRunLib.dll.&lt;/P&gt;&lt;P&gt;I am able to open the CodeRun addin in Navisworks and get the code template, but when I click the "Run", it output the following error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.NullReferenceException: Object reference not set to an instance of an object.&lt;BR /&gt;Stack Trace:&amp;nbsp;&amp;nbsp; at CodeRunLib.BaseGenerator.Generate(CodeDomProvider codeProvider, String sourceCode, String classToCreate, String callFunction, String&amp;amp; errors, String&amp;amp; consoleOutput)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at CodeRunLib.CodeRunCSharp.Generate(String code, String fullClassName, String mainFunction, String&amp;amp; errors, String&amp;amp; consoleOutput)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at CodeRun.Control.CodeRunControl.Generate(CodeRun codeRunner, String code, String fullClassName, String mainFunction, String&amp;amp; errors, String&amp;amp; consoleOutput)&lt;BR /&gt;&lt;BR /&gt;Any suggestions are highly appreciated! Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2012 18:16:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3496920#M7544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-12T18:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: 2013 API CodeRun error</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3500660#M7545</link>
      <description>&lt;P&gt;i m attaching a screenshot of the error. the error appears even with empty code in the CodeRun.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 16:13:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3500660#M7545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-14T16:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: 2013 API CodeRun error</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3500868#M7546</link>
      <description>&lt;P&gt;additional screenshot in debut mode, which hopefully shows where is breaks down.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 18:06:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3500868#M7546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-14T18:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: 2013 API CodeRun error</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3501396#M7547</link>
      <description>&lt;P&gt;Hi Zhangle&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if this is the reason but can you build the CodeRun and CodeRunLib projects to target&amp;nbsp;.NET Framework 4.0. You mentioned you have used VS 2012 and I am not sure if that is causing the exceptions you have included. Unfortunately I only have VS 2010 and I used it to build the projects using .NET Framework 4.0 and it works fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my set up, I only see the similar exception when there is a mismatch between the namespace and the class in the code as compared to that in the Full Class Name field in CodeRun UI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;
&lt;P&gt;Saikat&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2012 00:19:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3501396#M7547</guid>
      <dc:creator>saikat</dc:creator>
      <dc:date>2012-06-15T00:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: 2013 API CodeRun error</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3502746#M7548</link>
      <description>&lt;P&gt;Thanks Saikat for the suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But while I am checking, it seems the default&amp;nbsp;Framewok used is already 4 (which i think might be the result of the project setting). Any other thought?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2012 18:04:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3502746#M7548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-15T18:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: 2013 API CodeRun error</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3526670#M7549</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had some follow up discussions with my colleagues from the Development and the primary suspect still seems to be VS 2012. Since VS 2012 is still not supported with NW - can you please try compiling CodeRun with VS 2010 and see if that works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Saikat&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2012 17:59:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3526670#M7549</guid>
      <dc:creator>saikat</dc:creator>
      <dc:date>2012-07-04T17:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: 2013 API CodeRun error</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3529460#M7550</link>
      <description>&lt;P&gt;Thanks Saikat.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sad that I do not have access to VS2010. I think I will keep working on 2012, since no other issues are identified so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and hope this will be solved soon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Le Zhang&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2012 16:06:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3529460#M7550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-06T16:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: 2013 API CodeRun error</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3743414#M7551</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is an old topic but I am facing the same issue and couldn't find any solution.&lt;/P&gt;&lt;P&gt;I did try to re-install VS2010 and recompile both CodeRun and CodeRun &amp;amp; CodeRunLib and made sure they were in the appropriate folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still got the error.&lt;/P&gt;&lt;P&gt;Any other tips?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2012 01:39:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3743414#M7551</guid>
      <dc:creator>ngombault</dc:creator>
      <dc:date>2012-12-28T01:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: 2013 API CodeRun error</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3745883#M7552</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you get the same error posted in message 2 &amp;amp; 3? As my colleauge indicated, that looks an issue with VS2012. but with VS2010, we did not hit an error. Could you share some screenshots and the machine configuration?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2013 03:48:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3745883#M7552</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-04T03:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: 2013 API CodeRun error</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3745885#M7553</link>
      <description>&lt;P&gt;yes, same error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.NullReferenceException: Object reference not set to an instance of an object.&lt;BR /&gt;Stack Trace:&amp;nbsp;&amp;nbsp; at CodeRunLib.BaseGenerator.Generate(CodeDomProvider codeProvider, String sourceCode, String classToCreate, String callFunction, String&amp;amp; errors, String&amp;amp; consoleOutput) in C:\Program Files\Autodesk\Navisworks Manage 2013\api\net\examples\Tools\CodeRun\CodeRunLib\BaseGenerator.cs:line 108&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at CodeRunLib.CodeRunVB.Generate(String code, String fullClassName, String mainFunction, String&amp;amp; errors, String&amp;amp; consoleOutput) in C:\Program Files\Autodesk\Navisworks Manage 2013\api\net\examples\Tools\CodeRun\CodeRunLib\CodeRunVB.cs:line 46&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at CodeRun.Control.CodeRunControl.Generate(CodeRun codeRunner, String code, String fullClassName, String mainFunction, String&amp;amp; errors, String&amp;amp; consoleOutput) in C:\Program Files\Autodesk\Navisworks Manage 2013\api\net\examples\Tools\CodeRun\CodeRunControl.cs:line 173&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like I explained, It use to work with visual studio 2010. The error did occure after the installation of VS 2012, but I can't say this is the trigger. Also I did rebuild the solution in VS 2010 so it should have fixed it no?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The machine configuration is:&lt;/P&gt;&lt;P&gt;windows 7 x64 professional SP1&lt;/P&gt;&lt;P&gt;proc i7 Q820&lt;/P&gt;&lt;P&gt;16Gb ram&lt;/P&gt;&lt;P&gt;VS 2012 Ultimate&lt;/P&gt;&lt;P&gt;Navisworks Manage 2013 (64bit) V10.0.0.84082 Built Mar 5 2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let me know if you need anything else,&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nic&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2013 04:08:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3745885#M7553</guid>
      <dc:creator>ngombault</dc:creator>
      <dc:date>2013-01-04T04:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: 2013 API CodeRun error</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3747786#M7554</link>
      <description>&lt;P&gt;Thanks for the info. It looks to me this may be still related with VS2012. I logged this issue. The suggestion I can think of now is to work on a machine with VS2010 only. Sorry.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 05:15:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3747786#M7554</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-08T05:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: 2013 API CodeRun error</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3754050#M7555</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We finally addressed this issue. Please refer to the blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/aec/2013/01/coderun-sample-cannot-work-with-vs2012.html" target="_blank"&gt;http://adndevblog.typepad.com/aec/2013/01/coderun-sample-cannot-work-with-vs2012.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the inconvenience caused.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 02:39:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3754050#M7555</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-16T02:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: 2013 API CodeRun error</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3754177#M7556</link>
      <description>&lt;P&gt;Fixed it, thanks - you rock!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 08:41:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/2013-api-coderun-error/m-p/3754177#M7556</guid>
      <dc:creator>ngombault</dc:creator>
      <dc:date>2013-01-16T08:41:28Z</dc:date>
    </item>
  </channel>
</rss>

