Can I add attributes into properties using Revit's API?

Can I add attributes into properties using Revit's API?

Anonymous
Not applicable
1,815 Views
2 Replies
Message 1 of 3

Can I add attributes into properties using Revit's API?

Anonymous
Not applicable

I want to add some attributes into Space's property to define the owner information of this space, how can I achieve this using Revit's API or can I override the class and using it in my own project?

0 Likes
Accepted solutions (1)
1,816 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution

There are two main ways to add data to a Revit element:

 

Extensible storage and shared parameters.

 

The latter is optionally displayed in the property palette, can be made accessible to the end user for reading and writing, and is honoured by Revit, e.g., for scheduling.

 

The latter is only visible to the add-in that creates it and is much more modern and efficient.

 

Please refer to The Building Coder topic group for more information on extensible storage:

 

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

 

Cheers,

 

Jeremy

 



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

Message 3 of 3

Anonymous
Not applicable

Hi Jeremy,

Is that mean I need to rewrite the document of the space element? If yes, which document should I load and overwrite? Space Naming?

 

Thanks

0 Likes