Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Numerical parameter formulas - is there a [this] variable?

9 ANTWORTEN 9
Antworten
Nachricht 1 von 10
Tupaia
710 Aufrufe, 9 Antworten

Numerical parameter formulas - is there a [this] variable?

Hi!
Quick question: is there a way to refer to the existing parameter in a formula? Like:

=[this]*2

=[this]+5

'this', of course, means the exising value.

I'd need this because I want to change multiple parameters (topo point Elevation in this case) at once.

Thanks a lot!

Best regards

9 ANTWORTEN 9
Nachricht 2 von 10
barthbradley
als Antwort auf: Tupaia

The way you have it written is exactly right. =Parameter Name *2 or =Parameter Name +5.  You can even put brackets around Parameter Name like you are you showing, which needs to be done in instances where Parameter Name contains certain characters.  

 

Here's some other information and rules that may help you in writing formulas:  

 

https://www.revitforum.org/tutorials-tips-tricks/1046-revit-formulas-everyday-usage.html

 

 

 

 

Nachricht 3 von 10
Tupaia
als Antwort auf: barthbradley

Thank you very much!
I still cannot get it to work, though.

Example: 2 walls with different height, both are selected. What's the exact formula to multiply the parameter 'Unconnected Height' by 2?

 

= (Unconnected Height) * 2

 

does not work - error message "the following string is not recognized: Unconnected Height"...

What's the 'magic symbol' for the variable itself?

Thanks!

Nachricht 4 von 10
barthbradley
als Antwort auf: Tupaia

I'm confused. Where you are writing this formula? 

Nachricht 5 von 10
ToanDN
als Antwort auf: Tupaia

You can only do it for one wall or walls with identical 'Unconnected Height' value, by select the walls and enter "=2 * [the actual existing value, not this text]" in the 'Unconnected Height" box.
Nachricht 6 von 10
Tupaia
als Antwort auf: ToanDN

screenshot parameter.png

 

I guess you know what I mean - using the variable/parameter itself in the formula.

Not possible?

Thanks!

Nachricht 7 von 10
barthbradley
als Antwort auf: Tupaia

Wow, I totally missed your point.  No, that's not possible.  

Nachricht 8 von 10
Tupaia
als Antwort auf: barthbradley

Ok, thanks!

Unfortunate... I guess I will post that in the idea forum. Would be a super nice and quick way to adjust multiple object's parameters.

Best regards

Nachricht 9 von 10
ToanDN
als Antwort auf: Tupaia


@Tupaia wrote:

screenshot parameter.png

 

I guess you know what I mean - using the variable/parameter itself in the formula.

Not possible?

Thanks!


As I said, it is only possible when the value is exposed, meaning one wall or wall with identical Unconnected height.  You could create a wall schedule, sort by Unconnected height, un-itemize rows to group them, and do it for each one.

Nachricht 10 von 10
Tupaia
als Antwort auf: ToanDN

Ok, but that's beside the point - being able to edit quickly.

I came across the idea because I wanted to lift a selection of 1000s of topo points by a value, without chaning to front view and moving them. Topo points have the parameter 'Elevation'. I thought I could just enter something like

=*+10

and be done.

The concept would be useful in many other cases, too, I think.

Thanks!

 

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report