Message 1 of 3
Error loading tool into API

Not applicable
09-24-2009
04:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi everyone, my name is Drew and I am just starting to learn vb.net to get this Revit API working for me. just wanted to say hi as its my first post in this group!!!
I have tried to make a "hello world" command however I get a message regarding System.TypeLoad.Exception (attached) when running from revit mep 2010.
I created the dll using Visual Studio 2008 Professional and it all loads into revit so I think I got the revit.ini correct.
my code is:
Imports Autodesk.Revit
Public Class Message
Implements IExternalCommand
Public Function Execute(ByVal commandData As Autodesk.Revit.ExternalCommandData, ByRef message As String, ByVal elements As Autodesk.Revit.ElementSet) As Autodesk.Revit.IExternalCommand.Result Implements Autodesk.Revit.IExternalCommand.Execute
MsgBox("Hello World")
Return IExternalCommand.Result.Succeeded
End Function
End Class
I have added the RevitAPI.dll as a reference
I have set the start action to the revit.exe file
Can anyone let me know which setting I am missing or point me in the right direction please?
Thanks
Drew J
North Vancouver
I have tried to make a "hello world" command however I get a message regarding System.TypeLoad.Exception (attached) when running from revit mep 2010.
I created the dll using Visual Studio 2008 Professional and it all loads into revit so I think I got the revit.ini correct.
my code is:
Imports Autodesk.Revit
Public Class Message
Implements IExternalCommand
Public Function Execute(ByVal commandData As Autodesk.Revit.ExternalCommandData, ByRef message As String, ByVal elements As Autodesk.Revit.ElementSet) As Autodesk.Revit.IExternalCommand.Result Implements Autodesk.Revit.IExternalCommand.Execute
MsgBox("Hello World")
Return IExternalCommand.Result.Succeeded
End Function
End Class
I have added the RevitAPI.dll as a reference
I have set the start action to the revit.exe file
Can anyone let me know which setting I am missing or point me in the right direction please?
Thanks
Drew J
North Vancouver