Results 1 to 3 of 3

Thread: API Documentation

  1. #1
    AUGI Addict
    Join Date
    2003-11
    Location
    New Zealand
    Posts
    1,116
    Login to Give a bone
    0

    Default API Documentation

    I'm not a ADN member but any chance more of the API documentation can be posted?

    From the API.chm
    Given the large number of built in parameters please contact Autodesk ADN support for details on a particular parameter.
    For example if WALL_HEIGHT_TYPE is null what does that mean? That the height is unconnnected?

    WALL_BASE_CONSTRAINT is null means not constrained? Can you do that? Doesn't a wall have to be linked to a level.

    Guy

  2. #2
    Autodesk Revit Developer
    Join Date
    2004-02
    Location
    Waltham
    Posts
    468
    Login to Give a bone
    0

    Default Re: API Documentation

    That's the trick - try to figure out what the parameters are by comparing what you see through the API to what you see in the element parameters dialog. We certainly won't try to write up everything here.

    Just for you - you got it. Top and bottom levels. Null top means explicit height, null bottom should not happen, but code defensively anyway, things may change.

  3. #3
    AUGI Addict
    Join Date
    2003-11
    Location
    New Zealand
    Posts
    1,116
    Login to Give a bone
    0

    Default Re: API Documentation

    Cheers Fedor,

    Just thought there might have been some additonal pdf's or something. It is a largely self documenting the API. Getting incorrect behaviour though.

    I've rewritten the StructSample1CS example in python. What's confusing me is

    Code:
    if(elem.get_Parameter(Autodesk.Revit.Parameters.BuiltInParameter.WALL_HEIGHT_TYPE) != null && elem.get_Parameter(Autodesk.Revit.Parameters.BuiltInParameter.WALL_BASE_CONSTRAINT) != null)
    should only add a wall with a constrained wall height and bottom constrained to a level. Correct?. Yet with the C# or python version it doesn't matter what the wall height is set to. It still adds the wall.

    At least the python script performs the same as the C# versionl

    Guy
    Last edited by GuyR; 2005-06-03 at 08:54 AM.

Similar Threads

  1. Guideline for FM documentation
    By studi in forum Facilities Management In Practice
    Replies: 2
    Last Post: 2022-09-01, 08:34 AM
  2. Building Pad Documentation
    By ctc in forum Revit Architecture - General
    Replies: 1
    Last Post: 2012-03-08, 08:35 PM
  3. Model Documentation
    By MikeRobinson in forum AutoCAD 3D (2007 and above)
    Replies: 5
    Last Post: 2011-05-08, 06:55 PM
  4. Site documentation
    By tim.101799 in forum Revit Architecture - General
    Replies: 1
    Last Post: 2007-11-20, 08:08 PM
  5. documentation tools
    By ricardo.o.maciel in forum ACA/AMEP Styles Library
    Replies: 1
    Last Post: 2006-04-13, 03:37 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
  •