Issue


When you try running an ElumTools command that utilizes 3D graphics, you get an error message that the DLL cannot be loaded. 


Solution 


This error most likely indicates that you have an older version of the .NET framework on your machine that may not be compatible with ElumTools. Please try updating the .NET framework using the steps below and contact our Support team if that does not solve the problem.

  1. Close Revit (if you have it running)
  2. Dowload and install .NET 4.6
  3. If the problem persists, try rebooting as well


Error Message 



Could not complete Elum Tools command: LuminaireMangerCommand


Exception:

System.Missing.MethodException: Method not found: 'Int32 System.Runtime.InteropService.MarshalSizeOf(!!0)'.

    at Lai.Graphics.OpenGL.Extensions.HardwareAccelerated(|GraphicsContext. IntPrt deviceContext)

    at Lai.Graphics.OpenGL.CanvasOpenGL.Info()

    at Lai.Graphics.OpenGL.CanvasOpenGL.Create(Boolean enableVSync)

    at Lai.UI.OpenGL.Viewer.CreateCanvasAndRenderer()

    at Lai.UI.OpenGL.Viewer.Initialize()

    at ElumTools.PhotometricDataViewer.InitializeComponent()

    at ElumTools.PhotometricDataViewer..ctor()

    at ElumTools.LuminaireManagerForm.InitializeComponet()

    at ElumTools.LuminaireManagerForm..ctor(Doument doc, List'1 selectedElements, LaiSettingsProviderInfo info)

    at ElumTools.LuminaireManagerCommand.Execute()

    at ElumTools.ElumToolsCommand.ExecuteCommand(String& message, ElementSet elements)

    at ElumTools.ElumToolsCommand.ExecuteInternal(String& message, ElementSet elements)

    at ElumTools.ElumToolsCommand.Execute Transactions(ExternalCommandData commandData, String& message.

ElementSet elements)

    at ElumTools.ElumToolsCommand.Execute(ExternalCommandData commandData, String&message, ElementSet elements)


ElumTools 2016 Release (2016.8.0.2)

Lai.Graphics

16.0.0.0

16.0.0.0

6794 [2017-02-0311-29(-7:00 UTC)]

C:\ProgramData\Autodesk\Revit\Addins\2016\!ElumTools.bundle\Lai.Graphics.dll