Results 1 to 2 of 2

Thread: navi 2013 api CodeRun problem

  1. #1
    Member
    Join Date
    2009-02
    Location
    UFL
    Posts
    6
    Login to Give a bone
    0

    Default navi 2013 api CodeRun problem

    Hi there! Wondering is there anyone successfully running the 2013 API tool CodeRun?
    I am successful in running the AppInfo tool, but for the CodeRun I can build it successfully and the plugin is shown in Navisworks, but there is no content in the form, as shown in the attached.
    I think this is related to the fact that the CodeRunLib is also needed somehow, but the info available in the document is limited and I have no clue right now.
    Thank you for any help!
    Attached Images Attached Images

  2. #2
    Member
    Join Date
    2009-02
    Location
    UFL
    Posts
    6
    Login to Give a bone
    0

    Default Re: navi 2013 api CodeRun problem

    Now a step further, I am able to run it, but with errors.

    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!

Similar Threads

  1. 2013: Revit 2013 Copy Monitor Problem
    By jonodavey397915 in forum Revit Structure - General
    Replies: 1
    Last Post: 2013-11-05, 04:19 PM
  2. 2013: radial array problem (revit 2013)
    By Run 24_7 in forum Revit Architecture - Families
    Replies: 6
    Last Post: 2013-06-05, 01:29 PM
  3. 2013: Lofting problem in Inventor 2013
    By jniessen in forum Inventor - General
    Replies: 6
    Last Post: 2012-12-16, 08:40 PM
  4. Replies: 3
    Last Post: 2012-12-10, 01:51 PM
  5. Problem referencing the DLL of Navis 2013 API
    By potapczuk542577 in forum NavisWorks - General
    Replies: 2
    Last Post: 2012-05-22, 12:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •