Model teklamodel = new Model();
Point point = new Point(0, 7000, 0);
Point point2 = new Point(1000, 7000, 0);
Beam Beam1 = new Beam();
Beam1.StartPoint = point;
Beam1.EndPoint = point2;
Beam1.Profile.ProfileString = "HI300-15-20*300";
Beam1.Insert();
Beam Beam2 = new Beam();
Beam2.StartPoint = new Point(500, 6000, 0);
Beam2.EndPoint = new Point(500, 8000, 0);
Beam2.Class = BooleanPart.BooleanOperativeClassName;
Beam2.Profile.ProfileString = "HI300-15-20*300";
Beam2.Insert();
BooleanPart Beam = new BooleanPart();
Beam.Father = Beam1;
Beam.SetOperativePart(Beam2);
if (!Beam.Insert())
Console.WriteLine("Insert failed!");
Beam2.Delete();
teklamodel.CommitChanges();