I learned from here that I need to make a pseudoatom but I cannot make it work.
pseudoatom test, resi=100, color=tv_blue, n. cg+cd1+ce1+cz+ce2+cd2
and some other ways! I don't know how should I choose the write atoms and make the pseudoatom. After this probably distance and angle measurement would be straightforward.