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 Distance ​

Pick what to move and what to measure from, read the distance between them and type a new one: the face or feature moves to match.

Edit Distance: Start: the hole near one end compared with Result: the distance typed, the hole moved.
Prism help example. Set the distance between two faces or features by typing it: the first pick moves to match. Symmetric moves both picks by half the change. A hole is measured from its centre line. View full size

In the app

Click what to move (a flat face, or a hole, slot, pocket or boss: one click picks the whole feature), then what to measure from. The panel shows the distance between them; type a new one, or drag the arrow, and the first pick moves to match. Symmetric moves both picks by half the change.

How to use ​

  1. Choose Edit Distance. Its panel opens on the right with numbered steps; anything you selected first fills matching inputs.
  2. Pick Move (a flat face, or a hole, slot, pocket or boss) (face, one or more).
  3. Pick Measured from (a flat face or a feature) (face, one or more).
  4. Adjust the settings and check the preview in the viewport.
  5. Confirm in the panel to apply, or cancel to leave the model unchanged. Applied changes are one undo step.

Settings ​

SettingDefaultValues
Distance0 mm0 to 1000000 mm
Symmetric (move both sides)Off

Script it ​

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

python
import cadkit as cad

cad.run("edit_distance", slots={"Move (a flat face, or a hole, slot, pocket or boss)": [...], "Measured from (a flat face or a feature)": [...]}, distance=0, symmetric=False)