Eplan Platform API
EPLAN API / User Guide / API DataModel / API Pro Panel / Drilling (Cut-out in GUI)
Drilling (Cut-out in GUI)

Represents opening in construction items such as mounting panels and sheets, that are drilled or manufactured by NC robots 

C#
Copy Code
Drilling oDrillingHole = Drilling.CreateTapHole(oProject, 50.0, null);
oDrillingHole.SetParent(oPlane, true);
oDrillingHole.GetSourceMates(true)[0].SnapTo(oPlane.GetTargetMates(true)[0] as PlaneMate, 0.0, 0.0, 0.0);

Drilling oDrillingHexagon = Drilling.CreateHexagon(oProject, 75.0, null);
oDrillingHexagon.SetParent(oPlane, true); oDrillingHexagon.GetSourceMates(true)[0].SnapTo(oPlane.GetTargetMates(true)[0] as PlaneMate, 40.0, 30.0, 50.0);