Bitbybit Docs
    Preparing search index...

    Class OCCTKeysAnsi

    ANSI B17.1 square parallel keys made for their shaft, in the unit asked for: bars with round ends, as wide and high as the standard gives for the shaft's diameter. Sunk the shaft's keyseat depth below its surface, a key also serves as the tool that cuts its keyseat.

    Index

    Constructors

    keys

    • Makes an ANSI B17.1 square parallel key: a bar with round ends, as wide and high as the standard gives for a shaft of shaftDiameter, lying along the frame's direction on its origin.

      Sunk the shaft's keyseat depth below the shaft's surface, the key also serves as the tool that cuts that keyseat.

      Parameters

      Returns Promise<TopoDSShapePointer>

      A new solid

      const key = await bitbybit.occt.parts.mechanical.keys.ansi.parallelKey({ shaftDiameter: 1, length: 1.25 });
      
    • Makes a parallel key as parallelKey does and names the role each face plays.

      The roles bottom, top, side and end (the round ends) list face indexes as shapes.face.getFaces numbers them. The bottom frame is the input frame.

      Parameters

      Returns Promise<ShapeWithRoles<TopoDSShapePointer>>

      The key, the faces each role names and its bottom

      const { shape, roles } = await bitbybit.occt.parts.mechanical.keys.ansi.parallelKeyWithRoles({ shaftDiameter: 1, length: 1.25 });