Results 1 to 3 of 3

Thread: Programming in Revit

  1. #1
    Member
    Join Date
    2010-10
    Posts
    11
    Login to Give a bone
    0

    Default Programming in Revit

    Dear all,

    I have to do some programming in revit. I am just beginner so i dont have much idea
    about how i know a little bit of Vb.net. I know i have installed .net in my system
    and downloaded and installed revit2011sdk0.exe after extrating i get Revit 2011 SDK in my desktop. I tried to run the sample application from the folder Revit 2011 SDK but it gives me an error " Type or namespace AutoDesk is not found (are you missing a using Directive or an assemble reference?)

    what shoul i do ???

    Thanks
    Rinu

  2. #2
    Member
    Join Date
    2010-10
    Posts
    11
    Login to Give a bone
    0

    Default Re: Programming in Revit

    hi all



    I have mannaged so far to get




    using System;

    using System.Collections.Generic;

    using System.Linq;

    using System.Text;

    using Autodesk.Revit;



    namespace ClassLibrary1

    {

    public class Class1 : IExternalCommand

    {



    }

    }



    But it gives me an error IExternalCommand "Type or namespace AutoDesk is not found (are you missing a using Directive or an assemble reference?)"



    I have added the reference RevitApi.dll

    but still its giving me this error



    Please Help

  3. #3
    Member
    Join Date
    2010-10
    Posts
    5
    Login to Give a bone
    0

    Default Re: Programming in Revit

    In Revit 2011 RevitAPIUI.dll contains the API interface IExternalCommand, therefore you need to add a reference to RevitAPIUI.dll (as well as RevitAPI.dll)

    also add:

    using Autodesk.Revit.UI;

Similar Threads

  1. Programming in Revit
    By rinu.bs in forum VBA/COM Interop
    Replies: 0
    Last Post: 2010-10-05, 07:25 AM
  2. Programming for Revit Basics
    By paquettew in forum Dot Net API
    Replies: 2
    Last Post: 2009-08-12, 02:47 PM
  3. client programming with revit?
    By Maximillian in forum Revit Architecture - General
    Replies: 13
    Last Post: 2007-08-10, 03:36 PM
  4. Programming in Revit
    By spencer.67965 in forum Revit Architecture - General
    Replies: 42
    Last Post: 2004-12-04, 09:35 AM

Posting Permissions

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