FamilyInstance.ByPoint creates GHOST duplicate of Shared Nested Family

I have a Door Family (1) which has 7 Types.
That Door Family contains a Shared Nested Door Family (2).
That Door Family contains a Shared Nested Generic Model Family (3).

When i use FamilyInstance.ByPoint to place the Types from
Door Family (1) in my project it creates a ‘ghost’ duplicate of the
Shared Nested Generic Model Family (3)!?! Which lead to warnings.

What causes this? Is this a bug?
How can i prevent this from happening?




I can’t do anything with the duplicate. It also does not show in the project.

Do you get this warning just by placing the Door Family (1) in Revit normally? It sounds like it’s maybe an issue with the third family being shared by both the nested family and the original family, leading a new instance of the door to contain two shared instances of the double-nested family.

No. I already ruled that out. I am like 99% sure the node causes this.
A colleague had the same issue in another project with the same node.

Note
I mixed things up in my opening post;
(3) is a Generic Model Family and not a Generic Annotation Family.

Another thing to know. The Generic Model Family (3) has a nested
Generic Annotation Family (NOT shared). But i don’t think that matters.

Changing the Generic Model Family (3) to the Door category does not resolve the issue.

The Generic Model Family (3) has to be shared or else the nested
Generic Annotation Family won’t be visible in Family (1) / the project.

It looks like your script create 7 new instances but you only have warnings for 4 of them. Can you identify which instances are causing the warnings and maybe determine if there’s something different about those 4?

Can you recreate the issue with a basic example family using the same structure?

What do you mean by this. This Family was pretty basic.

The Generic Model is controled by a Visibility State. It is a synbol for Fire Rating
and Self Closing .It is only turned on for some Types.
In this case the Types with FR30 in their name.

Also, maybe more then one duplicate gets created?
Some IDs appear in multiple warnings.
Only the ones in warning #3 are unique by the looks of it.

Can you either share the families in question or create a super basic version of a family that works in the same way? We can only guess without seeing the family.

Can you determine which instances are creating the duplicates that show up in the warning box? I would expect 7 instances of the same family to cause 7 warnings for duplicate elements if the issue was with the node creating the elements.

Was about to do that. I didn’t make the Family. It is from our library.
I think our Families need some work. Some are overcomplicated :see_no_evil:.

This is why it’s best you create a basic family that only deals with this nested issue so you can confirm whether it’s how the family is built or not.

1 Like

Fact remains it is ONLY an issue when the Family is placed using Dynamo.
I’ll upload the orignal Family for now and will strip it down (simplify) after
and upload a stripped down version afterwards
(will probably be tomorrow - been a long day already :yawning_face:).

1 Like

Family.rfa (5.9 MB)
FamilyInstanceByPoint.dyn (23.4 KB)

I will update THIS post (10) with an stripped down version.

EDIT1
An already waaay more stripped down version.

Family_Stripped_V1.rfa (3.2 MB)

EDIT2

Okay. It is 100% how the Family is build in combination with Dynamo.
No issues with the stripped down version with just one type and
the Generic Model visible.
I know have to figure out when or why it goes wrong :weary:.

Thanks for pointing that out @Nick_Boyts.
I thought that would’t be the cause. Should have known better :roll_eyes: .

EDIT3
So it might not be the family. See later posts.

I was able to run the script with the original families in a new project with no issue. See if you have the same luck. I’m guessing you’ve just run the script too many times or have other instances of some of those families already in the project.

Now i am totally confused :face_with_spiral_eyes:.

I also need to test it with another family having
the same shared nested families i guess.
That may be the root of the problem.
Got some more digging to do.

Thanks for now @Nick_Boyts.

Check element bindings first… The ‘previously placed’ shared nested instances might be getting orphaned during binding updates, which would be a new bug for me.

@jacob.small
You might be on something / be right. It might got something to do with element binding.

When i run the script with Family loaded into a new (EMPTY) project then there is no issue.

When i run the script with multiple Families sharing the same Shared Nested Family into a new (EMPTY) project then there is no issue.

However, when i run the script a second time the Families get placed, BUT the previous
placed Families get removed (b/c element binding).
However i didn’t get the duplicate issue in that new (EMPTY) project.

Clear your Element Binding, and then only run it in the project via player to see if that resolves the issue for good.

I loaded every Door and Window from my original project and loaded them into
a new (EMPTY) project. Again no issues.

Als good to know;
I am testing with simplified script of (my original script is way more complicated).

So my guess the problem got something to do with my original .dyn or
the project (or a combination of).

My orginal script places all Families, which are actually placed,
…on x rows puts them
…on the correct Workset,
…on the Phase
…creates Sections for each row
…Tags the Doors and / or Windows.

You get something like this.


Floor Plan


Sheet

EDIT
Tested my orginal script in the new (EMPTY) project. Again no issues.
Couldn’t test everything. So only if the placement would give me issues.
So no tagging and some other stuff.

The bindings in your .dyn are unique to particular GUIDs in particular projects… as your next project won’t have the same GUID as the one which is already bound you can’t ‘recreate the issue’ without starting over and recreating the entire process which lead to the issue. I’ve tried a few things with a sample file to do so, but I can’t manage to do so (congrats you’re in uncharted territory somehow). Any ‘new file’ that reproduces it will require you do whatever was done before.

And so to reproduce the issue and help directly we’d need the stripped down .rvt file itself - yes the actual project with the families already in it. Nuke all other model elements (i.e. delete all [walls, floors, levels but one, views but one, materials] and purge 3x, ect.). Then post the .dyn and the .rvt.

That said I don’t think we need the file. Clear out the Element Binding and then see if you can reproduce the issue.

:rofl:

Will do that next.

PS
We had this happen in TWO projects.

I made a detached model of the original
(don’t know if that would matter for the test).
Removed the bindings in the .dyn.
Ran it and i got the issue again.

Also gonna try it on a project i never
used my .dyn on yet.

GUIDs should be maintained if you open detach and save, so you should be all set.

Can you post the nearly entirely nuked version for me to have a look at later this week?

1 Like