Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The formula doesn't work

15 REPLIES 15
Reply
Message 1 of 16
ArmanMargaryan
1433 Views, 15 Replies

The formula doesn't work

ArmanMargaryan
Collaborator
Collaborator

Hello!

 

The formula doesn't work. It is possible to enter two identical parameters in the formula so that the second parameter does not understand text.

 

if(or(z Offset Value < -0' 4", z Offset Value > -0' 4"), [z Offset Value], "")

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

0 Likes

The formula doesn't work

Hello!

 

The formula doesn't work. It is possible to enter two identical parameters in the formula so that the second parameter does not understand text.

 

if(or(z Offset Value < -0' 4", z Offset Value > -0' 4"), [z Offset Value], "")

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

Labels (1)
15 REPLIES 15
Message 2 of 16

martijn_pater
Advisor
Advisor

Both [z offset value] and "" need to be text (the latter is...) to return text to the text parameter, so I suspect z offset value is not a text parameter...edit: actually it is, since it's in the condition for the if statement so there's your answer... 

 

PS. are we talking about scheduling or family formula...?

Both [z offset value] and "" need to be text (the latter is...) to return text to the text parameter, so I suspect z offset value is not a text parameter...edit: actually it is, since it's in the condition for the if statement so there's your answer... 

 

PS. are we talking about scheduling or family formula...?

Message 3 of 16

ArmanMargaryan
Collaborator
Collaborator

Revit formula need to understand what is written in parentheses [] is a parameter, not a text.

 

PS. We are talking about Family formula.

 

Sorry, if I could not explain the problem well.

Thanks.

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

0 Likes

Revit formula need to understand what is written in parentheses [] is a parameter, not a text.

 

PS. We are talking about Family formula.

 

Sorry, if I could not explain the problem well.

Thanks.

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

Message 4 of 16
syman2000
in reply to: ArmanMargaryan

syman2000
Mentor
Mentor

Can you post the family or screenshot to see what we are looking at? In some cases family parameter if it is tied to dimension will not allow negative value.

Check out my Revit youtube channel - https://www.youtube.com/user/scourdx
0 Likes

Can you post the family or screenshot to see what we are looking at? In some cases family parameter if it is tied to dimension will not allow negative value.

Check out my Revit youtube channel - https://www.youtube.com/user/scourdx
Message 5 of 16
ToanDN
in reply to: ArmanMargaryan

ToanDN
Consultant
Consultant
You are having two types of output, one is Length and one is Text. That does not work. Are you just trying to omit the output when the value is -4"?
0 Likes

You are having two types of output, one is Length and one is Text. That does not work. Are you just trying to omit the output when the value is -4"?
Message 6 of 16

barthbradley
Consultant
Consultant

this?

 

z Offset Value.jpg

this?

 

z Offset Value.jpg

Message 7 of 16

martijn_pater
Advisor
Advisor

@martijn_pater wrote:

is=isn't*, a text parameter for z value.


You can't convert number to text, unless you have a finite number of possibilities maybe. See attached.


@martijn_pater wrote:

is=isn't*, a text parameter for z value.


You can't convert number to text, unless you have a finite number of possibilities maybe. See attached.

Message 8 of 16

Ilic.Andrej
Advisor
Advisor

@ArmanMargaryan wrote:

if(or(z Offset Value < -0' 4", z Offset Value > -0' 4"), [z Offset Value], "")


It looks like you are complicating things for some reasons only you know of. Have you heard the phrases: "Less is more.", and "Simple is hard"?



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

0 Likes


@ArmanMargaryan wrote:

if(or(z Offset Value < -0' 4", z Offset Value > -0' 4"), [z Offset Value], "")


It looks like you are complicating things for some reasons only you know of. Have you heard the phrases: "Less is more.", and "Simple is hard"?



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

Message 9 of 16

ArmanMargaryan
Collaborator
Collaborator

Unfortunately, they are not limited to me.

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

0 Likes

Unfortunately, they are not limited to me.

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

Message 10 of 16

ArmanMargaryan
Collaborator
Collaborator

it's a beam tag. This is in the Label:2.png

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

0 Likes

it's a beam tag. This is in the Label:2.png

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

Message 11 of 16

ArmanMargaryan
Collaborator
Collaborator

This is how it works when I do Load into Project. That's wrong, it's supposed to be the value of "z Offset Value".2.png

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

0 Likes

This is how it works when I do Load into Project. That's wrong, it's supposed to be the value of "z Offset Value".2.png

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

Message 12 of 16

martijn_pater
Advisor
Advisor

Use a prefix (and/or suffix) in the tag label with your z value parameter.

 

Label parameter prefixLabel parameter prefix

0 Likes

Use a prefix (and/or suffix) in the tag label with your z value parameter.

 

Label parameter prefixLabel parameter prefix

Message 13 of 16

ArmanMargaryan
Collaborator
Collaborator

This parameter should be set for beams that are -0 '- 4 "low or high. 

As shown in the picture, but instead of the text "z Offset Value" write the value of the "z Offset Value"

 

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

0 Likes

This parameter should be set for beams that are -0 '- 4 "low or high. 

As shown in the picture, but instead of the text "z Offset Value" write the value of the "z Offset Value"

 

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

Message 14 of 16

barthbradley
Consultant
Consultant

@ArmanMargaryan wrote:

it's a beam tag. This is in the Label:2.png


 

I don't understand what you are pointing out to me.  That's exactly the formula I showed you above.  Looks like it worked.  No?  

0 Likes


@ArmanMargaryan wrote:

it's a beam tag. This is in the Label:2.png


 

I don't understand what you are pointing out to me.  That's exactly the formula I showed you above.  Looks like it worked.  No?  

Message 15 of 16

ArmanMargaryan
Collaborator
Collaborator

I tried it before you wrote it.

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

0 Likes

I tried it before you wrote it.

Arman Margaryan
Structural Engineer | BIM Specialist

If my answer solved your problem, please click the "ACCEPT SOLUTION" button.

Linkedin | Facebook

Revit Structure Certified Professional

Message 16 of 16

martijn_pater
Advisor
Advisor

Like I said, it's not possible to convert number to text. Just use prefix/suffix with the parameter for the tag's label... 

 

0 Likes

Like I said, it's not possible to convert number to text. Just use prefix/suffix with the parameter for the tag's label... 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report