- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there! I am able to run the AppInfo sample project, but not able to run the CodeRun example in the Navisworks 2013 API.
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 <NaviFolder>\Plugins and copy the CodeRun.ADSK.dll; created a Compilers folder in the CodeRun.ADSK folder and put the CodeRunLib.dll.
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:
System.NullReferenceException: Object reference not set to an instance of an object.
Stack Trace: at CodeRunLib.BaseGenerator.Generate(CodeDomProvider codeProvider, String sourceCode, String classToCreate, String callFunction, String& errors, String& consoleOutput)
at CodeRunLib.CodeRunCSharp.Generate(String code, String fullClassName, String mainFunction, String& errors, String& consoleOutput)
at CodeRun.Control.CodeRunControl.Generate(CodeRun codeRunner, String code, String fullClassName, String mainFunction, String& errors, String& consoleOutput)
Any suggestions are highly appreciated! Thanks!
Solved! Go to Solution.
