Parameter Formula Different From Different Type

Parameter Formula Different From Different Type

DanielleZhang
Explorer Explorer
1,179 Views
11 Replies
Message 1 of 12

Parameter Formula Different From Different Type

DanielleZhang
Explorer
Explorer

I am trying to create an ADA Door clearance rectangle, and depending on the condition of the door (push, pull, side approach, and ext), the rectangle will change automatically with the door size. I tried a few different ways and landed on making a nested family and making the clearance rectangle a separate family from the door itself. I managed to change the clearance rectangle's length since it is a good solid number. However, when I am making the width parameter, I encounter issues when I want to make one type of rectangle width with "=door width" and the other "door with + 18" " (door with will be hooked up to the actual door width) Revit doesn't allow me to do that and want to make the formula the same under the same parameter even under different type. 

I guess this might be a dumb question, but is there no way to have different formula even under the same parameter since we are working in a separate type? Also if you all have any other ways to approach this issue you are welcome to follow up on this. 

0 Likes
Accepted solutions (1)
1,180 Views
11 Replies
Replies (11)
Message 2 of 12

barthbradley
Consultant
Consultant

Hard to visualize what you are describing. In part though, it sounds like a description of nested IF statements.  

 

Can you share any screenshots or the family itself?  

0 Likes
Message 3 of 12

jvpantin2
Collaborator
Collaborator

Hi, @DanielleZhang, "door width" is a type or instance parameter? Remember that instances parameters are unable to be used in formulas, normally a warning appears indicating so. If this were the case, you should convert it to type parameter in order to work properly.

¿Tu problema fue solucionado? Selecciona 'Marcar como solución'.
Así ayudas a otras personas a encontrar respuestas y agradeces a los miembro de la comunidad.
0 Likes
Message 4 of 12

barthbradley
Consultant
Consultant

@jvpantin2 wrote:

Remember that instances parameters are unable to be used in formulas.

 

What do you mean by this?

0 Likes
Message 5 of 12

DanielleZhang
Explorer
Explorer
Accepted solution

NV my other Revit Buddy came and resolve the situation. We just added another parameter so the formula can be the same. Thanks anyway! 

0 Likes
Message 6 of 12

jvpantin2
Collaborator
Collaborator

@barthbradley, sorry, I didn't complete the sentence:

instance parameters are unable to be used in (type parameter) formulas...

jvpantin_0-1634155878818.png

 

¿Tu problema fue solucionado? Selecciona 'Marcar como solución'.
Así ayudas a otras personas a encontrar respuestas y agradeces a los miembro de la comunidad.
0 Likes
Message 7 of 12

ToanDN
Consultant
Consultant

@jvpantin2 wrote:

@barthbradley, sorry, I didn't complete the sentence:

instance parameters are unable to be used in (type parameter) formulas...

jvpantin_0-1634155878818.png

 


Hmm,  I have Door Width as a Type parameter and all ADA dimensions as instance parameters since forever.

 

ToanDN_0-1634157232675.png

 

 

 

0 Likes
Message 8 of 12

jvpantin2
Collaborator
Collaborator

Whenever I tried to extract value from an instance parameter to a type parameter got that message 🤔

@ToanDN, you are using them backwards (from type to instance) and so it works...

¿Tu problema fue solucionado? Selecciona 'Marcar como solución'.
Así ayudas a otras personas a encontrar respuestas y agradeces a los miembro de la comunidad.
0 Likes
Message 9 of 12

ToanDN
Consultant
Consultant

@jvpantin2 wrote:

Whenever I tried to extract value from an instance parameter to a type parameter got that message 🤔

@ToanDN, you are using them backwards (from type to instance) and so it works...


Maybe you don't understand OP's intent. 

 

Op's question is to have Door Width as Type parameter and ADA clearance as Instance parameter.  The type parameter Door Width + other conditional statements drive the value of the instance parameter ADA clearance.  Why would anyone want it the other way around, which is using the clearance to set the width of the door?

0 Likes
Message 10 of 12

jvpantin2
Collaborator
Collaborator

@ToanDN Maybe I don't, but asked @DanielleZhang for the kind of parameter (type or instance) in case it were the cause of her trouble. And because once I went mad trying to use (by mistake) an instance parameter to add value in a type parameter formula. That's all.

¿Tu problema fue solucionado? Selecciona 'Marcar como solución'.
Así ayudas a otras personas a encontrar respuestas y agradeces a los miembro de la comunidad.
0 Likes
Message 11 of 12

RDAOU
Mentor
Mentor

@DanielleZhang wrote:

NV my other Revit Buddy came and resolve the situation. We just added another parameter so the formula can be the same. Thanks anyway! 


Hi @DanielleZhang 

 

While the argument about who understood your question and who didn't continues, it might be a good idea to mark your reply quoted above as a solution. 

 

 

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


0 Likes
Message 12 of 12

DanielleZhang
Explorer
Explorer

All, thank you for your responses. But what I did was literally add another parameter to input the required ADA clearance distance and put that parameter in the formula so it's consistent. For example: 

 

Parameters: Width, Door Width, ADA Clearance 

Original Issue: Width = Door Width + # (the formula have to be the same for Revit parameters. you can't have Door with + 4 for one type and Door width + 0 for another) 

Solution: Width = Door Width + ADA Clearance (A variable where the number can be different for each type, ie type 1 ADA Clearance = 4 and Type 2 ADA Clearance can be 0, the formula does not change and we achieve the same output)