Anuncios
Welcome to the Revit Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!
Comentario
Anonymous

My example was quite specific. The $current_view$ variable was supposed to just hold the name of the current view but what you suggested exposes an even more powerful idea, that of objects and attributes. First we need to come up with some syntax for denoting these special bits of text. I used a '$' at the start and end of the keyword but it doesn't have to be that symbol. If we expand the original idea to objects and attributes then a slightly different syntax might be more appropriate. For example, assuming that an object referred to as current_view is available then we should be able to access its properties like so:

 

${current_view.view_name}

${current_view.view_scale}

${current_view.discipline}

 

And so on. It probably doesn't make sense to expose all the properties but most could be exposed.

 

Going back to your example, a sheet is not a view so using ${current_view} might not work in this case. I don't have the right answer for you because I haven't spent all that much time thinking through all the use cases, it's just the beginning of an idea, but if this system was to well engineered, it would give us an incredibly powerful way of accessing and using all the meta data that is already there but can only be accessed with buttons.

 

Imagine how much more powerful your annotations could become if you were able to refer to all sorts of objects and their properties in the annotation and have that reference be updated automatically as the referred object changes during its lifetime.

 

-t