Results 1 to 4 of 4

Thread: New to Revit API

  1. #1
    100 Club
    Join Date
    2005-11
    Posts
    175

    Red face New to Revit API

    Hi

    i've been using Revit for a while, but am completely new to Revit API. i decided to look through the samples and the help available, but i have some problems. I hope someone can help me out!

    for eg: i edited the revit.ini file to include the code from the sample ' all views' . i added it just as below.


    [ExternalCommands]
    ECCount=2

    ECName1="Earth Connector"
    ECDescription1="Avatech Earth Connector for Revit 2008"
    ECClassName1="EarthConnector.Command"
    ECAssembly1="C:\Program Files\Avatech Solutions\Earth Connector Revit\EarthConnector2008.dll"

    [ExternalCommands]
    ECCount= 1
    ECName1= All Views
    ECClassName1= Revit.SDK.Samples.AllViews.CS.Command
    ECAssembly1= AllViews.dll
    ECDescription1= A new sheet will be generated according to the views selected by the user.

    One thing i noticed is there is no dll file in the folder all views. RAC opens up normally and does not show the all view command, but does show the erath connector command.

    Can someone help me with what i am doing wrong?

    thanks in advance!!

    Winn

  2. #2
    AUGI Addict
    Join Date
    2003-11
    Location
    New Zealand
    Posts
    1,116

    Default Re: New to Revit API

    Try this:

    [ExternalCommands]
    ECCount=2

    ECName1="Earth Connector"
    ECDescription1="Avatech Earth Connector for Revit 2008"
    ECClassName1="EarthConnector.Command"
    ECAssembly1="C:\Program Files\Avatech Solutions\Earth Connector Revit\EarthConnector2008.dll"

    ECName2= All Views
    ECClassName2= Revit.SDK.Samples.AllViews.CS.Command
    ECAssembly2= AllViews.dll
    ECDescription2= A new sheet will be generated according to the views selected by the user.

    Note you still need to compile the AllViews sample and put the correct path to the dll in the ECAssembly2= [Path to dll]\AllViews.dll line above.

    HTH,

    Guy

  3. #3
    100 Club
    Join Date
    2005-11
    Posts
    175

    Default Re: New to Revit API

    Thanks Guy

    by compile, do you mean use VB.Net to compile the allviews sample? forgive my ignorance, but i'm really quite new to this!

    thanks again

    Winn

  4. #4
    100 Club
    Join Date
    2004-02
    Location
    Brookline, MA
    Posts
    185

    Default Re: New to Revit API

    Yes, none of the SDK samples are compiled - you'll have to compile them yourself.

    If you open the "SDKSamples10.0.sln" file, it's a Solution which contains project references for all the samples - this will let you compile them all at once.

    Best Regards,
    Matt

Posting Permissions

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