Getting "Improper Boolean" Error

TravisClemons
Participant
Participant

Getting "Improper Boolean" Error

TravisClemons
Participant
Participant

Im trying to have the "Vertical Strut Control" toggle the Yes/No based of its length. 

0 Likes
Reply
Accepted solutions (1)
240 Views
3 Replies
Replies (3)

David_W_Koch
Mentor
Mentor
Accepted solution

@TravisClemons 

Revit formulas do not work the way you have it written.  Formulas control the value of the parameter to which they are assigned.

 

I have not tested this, but believe something like this should do what you want, assuming that when Vertical Strut Type Control is less than 9'-0" you want Vertical P1000 to be checked and Vertical P1001 to be unchecked and the opposite if the value is 9'-0" or greater.

 

Formula for Vertical P1000:  Vertical Strut Type Control < 9' 0"

Formula for Vertical P1001:  not(Vertical Strut Type Control < 9' 0")

 

An alternate formula for Vertical P1001 could be:  not(Vertical P1000)

 

Delete the formula for the Vertical Strut Type Control parameter.

 

If you want some other result, describe what it is.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

ToanDN
Consultant
Consultant

Edit: Answered. Nevermind

 

 

 

 

Enter formula for the two y/n parameters:

 

Vertical p1000: Vertical Strut Type Control < 9'

 

Vertical p1001: not (Vertical p1000)

 

barthbradley
Consultant
Consultant

For what it's worth to you, here's the formulas to push yes/no value directly: 

 

PushYN.png

0 Likes