The family is not cutting wall (not the right way)

hello everyone
i need some help in this
when i created this script shown below, the idea of the script is create opening around duct ant it is created but, there is problem the script created the openings from center of duct not around duct as shown in second picture
so can anyone help me in this issue ? please and thank you everyone


image

That’s going to be dependent on how you’ve built your opening family and how you’re getting locations. If the family has a center origin then you’ll place at the center of the pipe. If it has a corner origin then you have to adjust for the offset. Depending on how you’re determining the clash point, you may need to adjust for offsets or location there as well.

We really can’t do much without knowing all the specifics of how your logic is built.

1 Like

how can i offsets the clash point or its location because i tried but the point doesn’t change?
Thank you for your help

It’s not that you need to adjust the location of the clash itself. We just don’t know what you’re clashing or how that point is being determined. For just Duct and Walls it should be a simple center point of the solid intersection. But if that doesn’t seem to be the case then you may need to take that into account.

The main point here is that you’re the only one who knows how all of these pieces are setup and what is being returned. If any of that doesn’t look right to you then you need to understand why and fix it. One of your assumptions is likely wrong somewhere. If the family isn’t being located where you think it should, then the family is likely the problem. Showing all the node previews is a good place to start though.

2 Likes

Thank you for your responses
I really appreciate that.

I really thank you
After your response I recheck again on the script & the family and I found the issue in the family and its center origin.
I appreciate that.

1 Like