He was a military engineer at the Fort de Joux in 1786, in 1789 he was captain with the Royal corps of Engineers.