kcl-std → functions → hole::holesLinear

hole::holesLinearFunction in std::hole

WARNING: This function is experimental and may change or be removed.

Place the given holes in a line. Basically like function hole but cuts multiple holes in a line. Works like linear patterns.

hole::holesLinear(
  @solid: Solid,
  face: TaggedFace,
  holeBottom,
  holeBody,
  holeType,
  cutAt: [number(Length); 2],
  instances: number(_),
  distance,
  axis: Axis2d | Point2d,
)

Arguments

NameTypeDescriptionRequired
solidSolidWhich solid to add a hole to.Yes
faceTaggedFaceWhich face of the solid to add the hole to. Controls the orientation of the hole.Yes
holeBottomDefine bottom feature of the hole. E.g. drilled or flat.Yes
holeBodyDefine the main length of the hole. E.g. a blind distance.Yes
holeTypeDefine the top feature of the hole. E.g. countersink, counterbore, simple.Yes
cutAt[number(Length); 2]Where to place the first cut in the linear pattern, given as absolute coordinates in the global scene.Yes
instancesnumber(_)How many holes to cut.Yes
distanceHow far between each holeYes
axisAxis2d or Point2dAlong which axis should the holes be cut?Yes
Found a typo?