Odd behavior nested shared families

Odd behavior nested shared families

bahaaeldien.metwaly
Contributor Contributor
3,298 Views
22 Replies
Message 1 of 23

Odd behavior nested shared families

bahaaeldien.metwaly
Contributor
Contributor

Hi,

 

I'm having a recurring problem where some random instances of a shared family - nested in a host that derive their instance parameters - tend to have their parameter values reverted to default, ignoring the host's values.

 

Example:

 

Shared family of a box, with "Height" of 500mm as default. Height is an instance parameter that is linked to host's type parameter "Box_Height"

The host is then nested and copied multiple times inside a main family, with "Box_Height" now driven by a new parameter in the main family.

 

After updating the family a couple of times .. some boxes will ignore the height given to the main family and have it back to 500mm.

 

Attached is a sample for Revit 2016.

 

Appreciate the support 🙂

 

 

 

 

0 Likes
3,299 Views
22 Replies
Replies (22)
Message 2 of 23

barthbradley
Consultant
Consultant

Sounds like you reloaded the family into the project, and choose to overwrite the parameter values in the project with those in the family. Don't pick that option. 

Message 3 of 23

bahaaeldien.metwaly
Contributor
Contributor
hi Bradley,
I never pick that option, in fact I deleted all old versio s before loading to upper level every time i nest the family or load it to the project.

I'm building a bit complicated families and used to have this problem for over a year. But it's getting un avoidable now.

0 Likes
Message 4 of 23

ToanDN
Consultant
Consultant

So is it solved now?  I am a bit confused.

Message 5 of 23

bahaaeldien.metwaly
Contributor
Contributor

I just loaded the page and found it marked as solved, but no it's not .. how can i undo it ?

0 Likes
Message 6 of 23

barthbradley
Consultant
Consultant

Ouch! I'm looking at your family right now and feeling the burn. It's quite a monstrosity.  Frankly, I'm wondering why it doesn't mess up more often than it does. But, I will say, you did do it well for the most part. I don't see any fault with it per se. I am just wondering if it couldn't be simplified. For instance, maybe through using a Type Catalog. 

 

I'll explore it some more when I have some time -- and another cup of coffee. Ha!

 

Thanks for the solution credit all the same. I owe you one.  

 

 

 

0 Likes
Message 7 of 23

bahaaeldien.metwaly
Contributor
Contributor

Hi Bradley,

 

Thanks for looking into it. the example i attached was a family type controlled by an integer parameter, but this is not always the case, I have other families that have simple controls like length, left hand/ right hand or even parent name, to be stored in nested families. what i found out recently is that whenever an instance goes odd it ignores all it's linked parameters, so you can easily track which ones are not following. but that doesn't help much if these models are used by others for coordination.

0 Likes
Message 8 of 23

ToanDN
Consultant
Consultant

It appears you didn't associate the parameter of the two instances to different parameters in the parent family.  Do that and you shouldn't have the issue described.

 

Capture.PNGCapture1.PNG

 

By the way, why so many levels of nesting?  It doesn't seem necessary in this example file.

Message 9 of 23

barthbradley
Consultant
Consultant

Wait a minute! Why would that be the solution? It's family type driven. That makes no sense to me. Sorry, @ToanDN.  

Message 10 of 23

ToanDN
Consultant
Consultant

@Anonymous wrote:

Wait a minute! Why would that be the solution? It's family type driven. That makes no sense to me. Sorry, @ToanDN.  


Then associate them with Type parameters.  Enter the value directly for nested family instances can cause the exact issue as OP described, especially when the family have multiple types.

 

p/s: what the heck is going on with this thread?  It seams like the last response always receives Solution and Kudo.  Can you post something after this to confirm @barthbradley?

Message 11 of 23

barthbradley
Consultant
Consultant

C'mon @bahaaeldien.metwaly!!! Make a decision here. Don't keep giving us solutions credits and then yanking them away.  It's very demoralizing. 

Message 12 of 23

barthbradley
Consultant
Consultant

thank you, @bahaaeldien.metwaly. I live to fight another day. 

Message 13 of 23

bahaaeldien.metwaly
Contributor
Contributor

every reply is automatically marked as a solution before i even check it !

0 Likes
Message 14 of 23

ToanDN
Consultant
Consultant

@bahaaeldien.metwaly

 

If you did not accept Solutions and give Kudos then I think this thread is broken. I would start a new thread.

Message 15 of 23

bahaaeldien.metwaly
Contributor
Contributor

Alright, I'll collect some more examples and start a new one .. thanks both 🙂

0 Likes
Message 16 of 23

Discussion_Admin
Alumni
Alumni

@bahaaeldien.metwaly wrote:

Alright, I'll collect some more examples and start a new one .. thanks both 🙂


@bahaaeldien.metwaly

 

I unmarked the accidental solutions.

 

Please continue the conversation here in this thread.

 

Thanks
Discussion_Admin

Message 17 of 23

Anonymous
Not applicable

Hey guys,

 

I was wondering if you found a solution. I have 2 nested families that are exactly the same except one has nested families that are not shared and the other has those exact same families, but shared.

 

The parent family with the nested shared parameter does not respond when i change parameters. e.g. if I change the length, the geometry does nothing. The one with the unshared nested families does change perfectly.

 

PS: The problem only exists in the project. In the family editor both work, and react the same.

0 Likes
Message 18 of 23

bahaaeldien.metwaly
Contributor
Contributor

Hi Verdi,

 

I was able to fix the problem long back that I won't be able to give you the exact answer.

but it'd be one of two things:

- make sure all parameters of the shared-nested are instance parameters.

- make sure the default parameter values of the shared nested is far from your actual need, forcing it to be updated when placed.

 

it's a glitch , so don't seek a reason..

and share me the faulty family if you still need some help.

0 Likes
Message 19 of 23

Anonymous
Not applicable

Hi Bahaaeldien,

 

I have 2 families attached. the family 01 is the one with shared nested families and does not work. The family 02 is the one without shared nested families and does exactly what I want it to do.

 

I have also tried creating a totaly new parent family where I just put 1 shared nested column in there and try the change the height in the parent family. It does not work. With a nonshared nested column it does work to change the height in the parent family.

0 Likes
Message 20 of 23

bahaaeldien.metwaly
Contributor
Contributor

Screenshot 2019-08-07 17.21.47.png

Both are reflecting very well for me .. any particular parameter ?

0 Likes