Crystallography‎ > ‎Molecular graphics‎ > ‎Pymol‎ > ‎

Dashes/Distances between atoms

create v1, (resi 6 and name ~OD2)
create v2, (resi 29 and name P1)

The aboves create objects v1 and v2 from residues 6 and 29 exactly on atoms OD2 and P1

distance (v29),(v6)

This command will show distances between the two objects created above as dashed lines

Example:

create v1, (resi 498 and name CG2 and obj03)
create v2, (resi 304 and name CG2 and obj06)
distance (v1), (v2)
label resi 498 and name CG2 and obj03, "498 CG2"
label resi 304 and name CG2 and obj06, "304 CG2"
set dashes_width, 1
ray