AlphaPrism is in active development: features may change and you may run into bugs. Keep backups of your work.Known issuesReport a bug
Skip to content

Edit Pattern ​

Change the spacing or count of a line, grid or circle of features, or drop one.

Edit Pattern: Start: four holes in a row compared with Result: three holes, wider apart.
Prism help example. Change the spacing or count of a line, grid or circle of features, or drop one. Works on imported parts: the pattern is found from the geometry. View full size

In the app

Click any feature that belongs to a pattern. For a line, set the spacing and the count; for a grid, the spacing along its rows, the spacing between rows, the count per row and the number of rows, and whether every other row is shifted half a step (staggered, like a pegboard); for a circle, the angular step and the count. “Remove instance” deletes one instance by its number (counted from the first in the pattern, the clicked feature included). The clicked feature stays where it is. Leave a field at 0 to keep its current value.

How to use ​

  1. Choose Edit Pattern. Its panel opens on the right with numbered steps; anything you selected first fills matching inputs.
  2. Pick A feature of the pattern (click any hole, slot, pocket or boss in it) (face).
  3. Adjust the settings and check the preview in the viewport.
  4. Confirm in the panel to apply, or cancel to leave the model unchanged. Applied changes are one undo step.

Settings ​

SettingDefaultValues
Spacing0 mm0 to 1000000 mm
Spacing 20 mm0 to 1000000 mm
Number of instances00 to 500
Number of instances 200 to 500
Angular step0 °0 to 360 °
Remove instance (0 = none)00 to 100000
Every other rowAs it isAs it is, Shifted half a step, Not shifted

Script it ​

Command name edit_pattern. See Python scripting and the command reference.

python
import cadkit as cad

cad.run("edit_pattern", slots={"A feature of the pattern (click any hole, slot, pocket or boss in it)": ...}, spacing=0, spacing_2=0)