Seeing the API code behind your Revit actions?

Seeing the API code behind your Revit actions?

Anonymous
Not applicable
535 Views
2 Replies
Message 1 of 3

Seeing the API code behind your Revit actions?

Anonymous
Not applicable

Hey all,

 

I'm just getting started with scripting for Revit and I was curious if there is a way you can easily generate parts of API script.

For example ArcGIS can provide you with the code on the actions you just executed.

 

It would greatly help to start understanding the Revit API and it would make scripting a lot faster and more efficient if you can backtrack your actual 'clicking' actions in Revit in a generated file with Revit API.

 

For example if I try to load or update a family into my project.

You follow the actions: Load Family < browse to folder < select family < open < overwrite options < etc

It would be nice to have a textfile or window in which i can track the API code that is being used for the workflow, so I could recreate this in a script to preform this action manualy for all the families loaded into the project.

 

This way you can make a quickstart scripting with the API, without having to jump deeply into the Revit SDK library

 

 

0 Likes
536 Views
2 Replies
Replies (2)
Message 2 of 3

MarryTookMyCoffe
Collaborator
Collaborator

there is no recording  option in revit, I heard once some one did app like that but it was for early version for revit so 100% it not working now.
I agree that it would make thing easier.

Jump in to SDK, I suggest taking a very big breath, because it will take a while.

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug
Message 3 of 3

jeremytammik
Autodesk
Autodesk

The most efficient method to get started with the Revit API is to work through the getting started material:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#2

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder