Level elevation suffix

Level elevation suffix

Anonymous
Not applicable
3,497 Views
5 Replies
Message 1 of 6

Level elevation suffix

Anonymous
Not applicable

Hi,

 

How do I add a suffix or prefix to elevation parameter of Level.

 

Thanks & Regards

 

0 Likes
Accepted solutions (1)
3,498 Views
5 Replies
Replies (5)
Message 2 of 6

jeremytammik
Autodesk
Autodesk

Dear Sanjaymann,

 

I do not know about the elevation parameter...

 

The Elevation property of the Level element in the API, however, is a real number. 

 

As such, you cannot add a suffix or prefix to it.

 

You can only add such decoration to strings, or more complex objects that explicitly support it.

 

I would assume that the parameter you are talking about is also real valued.

 

You can check that for yourself using RevitLookup.

 

Cheers,

 

Jeremy



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

0 Likes
Message 3 of 6

ollikat
Collaborator
Collaborator
Hi.

I'm afraid at least I don't understand what you are after. What do you mean by "suffix" or "prefix" Do you mean that you would like to see some additional text within the Revit property palette next to the elevation parameter?
0 Likes
Message 4 of 6

Anonymous
Not applicable
Accepted solution

If you mean that you want to add a suffix to the elevation value as viewed from an elevation or section view, There's no direct API method I know of to do this. You can however do it manually by creating a custom Level Head family whith the suffix added to the elevation label. You could then use the API to assign this level head to your elevation.

 

0 Likes
Message 5 of 6

Anonymous
Not applicable

You are right scott. No api to do so. So will have to go via the family route.

 

Thanks & Regards

0 Likes
Message 6 of 6

wasim34301
Explorer
Explorer

Yes!!!

0 Likes