I’m new in Catia c#. I didn’t find a source or solution for boolean operations in Catia.
I wanted to create some bodies after that using boolean operations on those bodies.
private void button3_Click(object sender, EventArgs e)
{
PartDocument partDoc = (PartDocument)myCATIA.ActiveDocument;
Part part = partDoc.Part;
Body body1 = part.Bodies.Add();
Body body2 = part.Bodies.Add();
Body body3 = part.Bodies.Add();
body1.set_Name("A");
body2.set_Name("B");
body3.set_Name("C");
}
With a button I can create bodies and names but I didn’t figure it out how to use add remove in the code.
So basically I just wanted like this in my tree:
enter image description here