Copy Formula Value to the Type Parameter in the Schedule Using Dynamo

Copy Formula Value to the Type Parameter in the Schedule Using Dynamo

amarkonathala
Advocate Advocate
1,665 Views
4 Replies
Message 1 of 5

Copy Formula Value to the Type Parameter in the Schedule Using Dynamo

amarkonathala
Advocate
Advocate

Can u Tell me How to Copy Formula Value to the Type Parameter in the Schedule Using Dynamo, and the formula I used is..

if(and(Size_H > 101.6 mm, Size_H < 457.2 mm), (Size_H + 76.2 mm), if(and(Size_H > 482.6 mm, Size_H < 711.2 mm), (Size_H + 101.6 mm), if(and(Size_H > 736.6 mm, Size_H < 1016 mm), (Size_H + 127 mm), if(and(Size_H > 1041.4 mm, Size_H < 1371.6 mm), (Size_H + 152.4 mm), if(and(Size_H > 1397 mm, Size_H < 1447.8 mm), (Size_H + 101.6 mm), if(and(Size_H > 1473.2 mm, Size_H < 2133.6 mm), (Size_H + 127 mm), if(and(Size_H > 2159 mm, Size_H < 2895.6 mm), (Size_H + 152.4 mm), Size_H)))))))

amarkonathala_0-1612078438758.png

#1. How to create this formula in Dynamo

#2. How to copy to the Type Parameter USing Dynamo

 

 

0 Likes
1,666 Views
4 Replies
Replies (4)
Message 2 of 5

_Vijay
Collaborator
Collaborator

please post in dynamo forum.

 

But I don't think current Revit API allows that.

Vijayakumar
Head of BIM
Did you find this post helpful? Feel free to like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
Message 3 of 5

woezme
Enthusiast
Enthusiast

Was you ever able to find a dynamo script or work around to accomplish your task....I'm looking for the same thing...

Message 4 of 5

franciscopossetto
Advocate
Advocate

Hey,

 

I don´t think so. If the value is the same, you could write a formula to get that value, which basically would be copying the result from one field to another.

 

On your schema, the parameter NominalHeight contains a formula.  Put the following formula on your parameter COBie.Type.NominalHeight:

 

 

 

if(0 = 0, NominalHeight, 2147483647)

 

 

 

As 0 is equal to 0, this expression will be always evaluated as true. Then, the COBie.Type.NominalHeight will always have the same value as NominalHeight

 

I hope it helps,

Kind regards.

Github:
https://github.com/franpossetto
0 Likes
Message 5 of 5

woezme
Enthusiast
Enthusiast

So...are you saying I can create Calculated Formula.....and if so...Can I use this formula for system area....

What would that formula be?

Are you referring to Dynamo...or Revit out-of-box calculated formula

0 Likes