Ze Meng
← ZTools

Geometry

zArrayBetween

Array between two points

zArrayBetween arrays the selected objects along a path of picked points. The path can be one straight segment (a start and an end point) or a polyline with as many points as you like. All copies are placed in one group.

Quick start

  1. Run zArrayBetween.
  2. Select the objects to array.
  3. Define the array plane. With a single point or a single straight line selected, the world XY plane is used automatically. In other cases you click the origin, then the X axis, then the Y side, and press Enter.
  4. Pick the start point, then the end point of the first segment. To make a polyline, keep picking points. Press Enter when you are done. Type Undo to remove the last point.
  5. Type a count (Fixed Count) or a spacing (Fixed Spacing; a bare number is in the document unit) and press Enter. The copies are drawn live while your objects stay where they are.
  6. Press Enter on the empty prompt to create the array (one group, the originals are replaced). Esc leaves everything as it was.

Options

The settings apply to every segment of the path on its own. A polyline is treated as its separate segments, not as one long curve.

  • Mode: Count or Spacing. The prompt shows which number you are typing.
    • Count: that many copies on every segment.
    • Spacing: the spacing restarts at the start of every segment (default 5.5 ft, or 1.5 m in a metric document).
  • DivideEvenly: in Spacing mode, the count on each segment is rounded to a whole number and the remainder is shared evenly. The actual spacing of every segment is printed on the command line.
  • TrimEnds: type a distance, or click two points to measure one. Every segment of the path is then shortened by that distance at its end, so the last copy of each segment stops short of the corner. It is not remembered for the next array.

Good to know

  • Copies follow the path. On a polyline, each copy turns so that its X direction follows the direction of its segment. A copy that sits exactly on a corner turns to the middle direction between the two segments.
  • A corner gets one copy. Two segments that meet share the copy at their corner. With TrimEnds the previous segment stops before the corner and the next segment starts there.
  • A single point or a single straight line skips the plane step and uses the world XY plane automatically.
  • A very small spacing is capped. One array makes at most 50,000 copies; when the spacing is too small for the distance, the command line says so. Increase the spacing or shorten the array.
  • A start and an end point that are too close fail. If the two points coincide or are very close, the command fails.