PDA

View Full Version : Sample code Error



r.vetrano
2007-06-22, 12:06 PM
Trying to run SDK samples and get following error. Have VS 2005 and Net Frame 2


Warning 1 Namespace or type specified in the Imports 'Autodesk.Revit' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:\Revit API\Revit Code Samples\SDK\Samples\DeleteObject\VB.NET\DeleteObject.vb 26 9 DeleteObject
Any ideas?

Thank you
bob v

Revitator
2007-06-26, 11:17 AM
It might be that VS can't find the Revit.dll reference. Have a look at 'Project' menu, 'DeleteObject Properties' item, and then check the References tab in the resulting dialog. You may find that the Revit.dll item shows an error. Use the Add...Reference button to add a new reference to the Revit.dll for your version of Revit.

If there isn't a valid reference to the right Revit.dll, then the samples won't compile, and they give the error you mention.

r.vetrano
2007-07-09, 11:42 AM
Thanks. that was it.

bob v