Placing familyinstances with a pythonnode, Revit error

Hi guys,
I have this Python code and want to use it to place Window family instances(1). The problem is that I get the following error in Revit(2). But the script in Dynamo have no errors, it even tells me that the instances are palced(3). So my question is what do I have to do so that the families are actually placed in Revit?
Edit: The familie generation is based on Familyinstance.byHostAndPoint from the springs package. The Website the error leads to is :Help.


Error2
Output

Have you tested with a reproduceable case of manually placing an instance and automating the placement in the exact same spot?

You’re correct that the issue isn’t with the code. The issue is with the specific placements provided not being able to cut the wall. This could be an issue with the family, the wall, or cut/void settings but you’ll likely have to determine that manually to know how tto fix it.

1 Like

Hey @Nick_Boyts Nick,
I have a picture of the same workflow but done manually. The node that places the family is called “FamilyInstance.ByHostAndPoint” and this way my familys are placed. So I thought I could use my intersection center, the wall, and the MEP element that penetrates the wall to place my family. The wall and the MEP element are the same, and as you can see, the intersection point is also almost the same. I don’t know what I’m doing wrong or where my mistakes are. Can you please help me?
Many thanks in advance.
Best regards

Can you show us the node previews so we can see what’s happening? Right now your solid union is returning a null which means you’re not getting an intersection.

1 Like

Sorry, that was just an example. Now when it finally run properly:

Again, all we can see is that the graph ran without errors and presumably created a new instance at that location. If Revit then returns an error that the new instance is invalid for some reason then you would need to look into why you’re only getting an error with the script. What’s the difference between the manual method and the automated one? The error message in your original post shows 34 errors. Did you run this for 34 instances or are there multiple errors per instance coming back?

If you can share a small example file with a reproducible error we can give you more info.

Sorry for the confusion. In the original post only the python script is meant where for each clash it is noted which element intersects with another and then the center of this intersection is filtered out. Based on the two elements and the center of the intersection, a family should then be placed. In the last image, this was only done for one element as an example with dynamo nodes. I have placed the watch node in the python script so that you can see the results from the python code. And as you can see, the elements and the point at which they clash should be the same. So the same method is used, only an error is returned in the python script. The python script iterates over several elements. Should i show you the custom node in the graph and the code from python in comparrison?
Springspackge:


My cod:

Best to post a dataset, the graph, and all custom nodes you’ve built on your own. Otherwise we’re still guessing based on possible environments.

1 Like

The custom node is from the springs package. “Springs.HostedInstance.ByPoints”
Springs ->REvit->FamilyInstance->ByHostAndPoint