Parameter Formula Min Length

Parameter Formula Min Length

leahmbell
Advocate Advocate
1,087 Views
11 Replies
Message 1 of 12

Parameter Formula Min Length

leahmbell
Advocate
Advocate

Could someone help me with the syntax for a formula?

 

I have a specific electrical panel I am building, it hosts fine, but I want to specify that it can not go past the inside face of structure.  I can't think of an instance where we haven't had 5/8" gyp on the inside of the wall but our exterior finishes and structure vary greatly. If I have an instance where my finish isn't very thick I want the panel to be flush with the inside of the structure and then the excess will poke out on the exterior face how ever far it needs to.

On the flip side if my wall finish is thick, or my structure is thick, I want the excess space behind the panel in the structure layer.i know we can use < or > in the formulas but I'm not sure how to word it.

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

ToanDN
Consultant
Consultant

See if you can construct the formula using this guidance. 

https://www.revitforum.org/node/1126

 

Or share your family here if you still need further assistance.

 

 

 

 

0 Likes
Message 3 of 12

leahmbell
Advocate
Advocate

Attached is the basic family.

0 Likes
Message 4 of 12

ToanDN
Consultant
Consultant

Try this.

 

ToanDN_0-1677522261286.png

 

ToanDN_1-1677522270679.png

 

 

 

0 Likes
Message 5 of 12

leahmbell
Advocate
Advocate

That is what I am after, but it breaks when the wall thickness is adjusted.

0 Likes
Message 6 of 12

Mike.FORM
Advisor
Advisor

See Attached. I added a reporting parameter to confirm the host wall thickness and then also an instance parameter you need to input for the interior side finish thickness.

MikeFORM_0-1677524295989.png

 

0 Likes
Message 7 of 12

leahmbell
Advocate
Advocate

This one breaks as well when the wall is adjusted smaller.

 

leahmbell_0-1677525049672.png

 

0 Likes
Message 8 of 12

barthbradley
Consultant
Consultant

What recesses exactly? Does the flange recess with box or does it stay flush with the wall surface?  

 

 

Recess1.png

 

Recess3.png

0 Likes
Message 9 of 12

Mike.FORM
Advisor
Advisor

Whoops, You need to change the wall thickness parameter to an instance (reporting).

I must have accidentally switched it off reporting.

MikeFORM_0-1677527079862.png

 

0 Likes
Message 10 of 12

ToanDN
Consultant
Consultant
Accepted solution

@leahmbell wrote:

That is what I am after, but it breaks when the wall thickness is adjusted.


Try this family.  It breaks when you change the wall thickness in the family but it works in projects.  Untick Semi_recess box when you place the family and you can tick it on or off later.  If the host wall is thick enough for full recess and you tick Semi_recess then the panel will be deleted.  Pretty smart if you ask me.

 

ToanDN_0-1677531675962.png

 

ToanDN_1-1677531691963.png

 

 

 

 

 

 

0 Likes
Message 11 of 12

leahmbell
Advocate
Advocate

Perfect! That is what I was after.

 

Thank you!

 

 

0 Likes
Message 12 of 12

ToanDN
Consultant
Consultant
Accepted solution

@leahmbell wrote:

Perfect! That is what I was after.

 

Thank you!

 

 


Try this family instead.  I think it works in project without the need to check a box.  Don't change the wall thickness in the family though.

0 Likes