Family works in Family Editor but not in Project Space

Family works in Family Editor but not in Project Space

mhillis
Advocate Advocate
2,570 Views
8 Replies
Message 1 of 9

Family works in Family Editor but not in Project Space

mhillis
Advocate
Advocate

Hello everyone, 

 

I've got a family that represents a tap with a volume damper. I have a value called "HandFlag" that will shift the Damper Handle from side to side.  I realize there are other methods to achieve this effect, but I need it to operate in this fashion for the time being.

 

Anyway, this model works just fine in the Family Editor.  When the value is 0, it's on one side, when the value is 1, it's on the other.  It works 100% as intended in the Family Editor.  In Project Space, however; it works just fine when the HandFlag value is 1, but it just fails when the value is set to 0.  I was hoping someone could explain to me why exactly this is happening?

 

Thanks.

0 Likes
Accepted solutions (1)
2,571 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable
I'm not sure why it's doing that, but it's not just when the value is 0, it's anytime you change it from the original value when the family was loaded. My best guess is that something about your HandlePosCalc parameter disagrees with Revit. I'd recommend simply duplicating the extrusions that define the handle, then assigning a y/n visibility parameter to each one to toggle the appearance.
0 Likes
Message 3 of 9

fabiosato
Mentor
Mentor

Hello,

 

A simpler solution would be create a second extrusion and control the visibility parameter of both extrusions through yes/no parameters, one is marked when the value is one, other when the value is 0, my suggestion is that instead of using the parameter HandFlag as a numeric value, delete it and recreate with the same name as a Yes/No parameter, so you will need to create another one using the following formula:

HandFlagOpposite = not(HandFlag)

I just use an illustrative name, this way only checking/unchecking HandFlag you will get it done!

Fábio Sato
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.

EESignature

0 Likes
Message 4 of 9

Anonymous
Not applicable
Isn't that what I said?
0 Likes
Message 5 of 9

fabiosato
Mentor
Mentor
Sorry, when I was typing your reply was not available

Fábio Sato
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.

EESignature

0 Likes
Message 6 of 9

stever66
Advisor
Advisor

Or just create two different family types.  One for a left hand handle, and one for a right hand handle.

 

My guess is there is something Revit doesn't like about mirroring the handle once the family is loaded.

 

0 Likes
Message 7 of 9

EKey
Advocate
Advocate
Accepted solution

Here is the fixed Family.

0 Likes
Message 8 of 9

mhillis
Advocate
Advocate

Ekey,

 

Thanks for uploading a fixed model! Out of curoisty, what did you do to resolve it?

 

 

0 Likes
Message 9 of 9

EKey
Advocate
Advocate

It strongly recommended to use Reference Planes and Reference Lines for creating Families, instead of attaching dimensions directly to element geometry.

 

So, I created a Reference Plan, gave the "Handle" name to it, and set it as Working plan for the extrusion. Extrusion height is driven by parameter. The dimension which defines the Handle location was attached to the "Handle" Reference Plan.

 

I would recommend using a Yes/No parameter instead of the numerical one with 0 and 1 values.

 

 

Happy journey with the Families! Smiley Wink

0 Likes