PDA

View Full Version : API Documentation



GuyR
2005-06-03, 04:43 AM
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

FK
2005-06-03, 06:08 AM
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. ;-)

GuyR
2005-06-03, 08:52 AM
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


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