Results 1 to 3 of 3

Thread: Sample code Error

  1. #1
    Member
    Join Date
    2005-08
    Posts
    28
    Login to Give a bone
    0

    Default Sample code Error

    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

  2. #2
    Active Member
    Join Date
    2005-12
    Posts
    86
    Login to Give a bone
    0

    Default Re: Sample code Error

    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.

  3. #3
    Member
    Join Date
    2005-08
    Posts
    28
    Login to Give a bone
    0

    Default Re: Sample code Error

    Thanks. that was it.

    bob v

Similar Threads

  1. .Net TRANSMITTALLib Sample Code
    By bernie.snodgrass892799 in forum Dot Net API
    Replies: 6
    Last Post: 2014-01-06, 03:10 PM
  2. Error in a sample code ?
    By Dubweisertm in forum Dot Net API
    Replies: 3
    Last Post: 2011-09-08, 08:17 PM
  3. Replies: 0
    Last Post: 2006-04-10, 05:38 PM
  4. Replies: 13
    Last Post: 2004-07-29, 11:38 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
  •