Jeppe Nielsen #1 The type difintion should have the p1 and p2 fields for it to work: Type Constraint Field p1.particle Field p2.particle Field otherstuff End Type Also se my reply in the beginners forum.