Cutting wall with voids using the RevitApi and Python

Cutting wall with voids using the RevitApi and Python

JCRamirezT63SC
Explorer Explorer
287 Views
0 Replies
Message 1 of 1

Cutting wall with voids using the RevitApi and Python

JCRamirezT63SC
Explorer
Explorer

Hi,

I have an issue. I am using the window Revit template which has a wall embedded. I have created some voids and I want to cut the wall with these voids. When using the user interface, I can use the Cut Geometry tool and it works perfectly. But I want to automate it using the Revit API and Python. The question is, is there a method to do this? I have already tried the following:

  • BooleanOperationsUtils.ExecuteBooleanOperation: This one works in the sense that it outputs a solid, but it is not actually making the hole in the wall.

  • InstanceVoidCutUtils.AddInstanceVoidCut: The output is an error that says: "The element cannot be cut with a void instance. Parameter name: element."

  • CombineElements: The output is an error that says: "expected CombinableElement, got GeometryElement."

Nothing is working, and it seems that if I was cutting a solid then it might be possible, but I want to cut a wall. Also, the Opening Cut doesn't work because I need to use the voids I created to cut the wall.

Does anyone know how to accomplish this?

Thank you. 🙂

 

0 Likes
288 Views
0 Replies
Replies (0)