Dalgas joined the Danish Army as an officer of the Engineer Corps (today the "Ingeniørregimentet"). He mostly served as a highway engineer, reaching the rank of Lieutenant Colonel before he moved to the newly established civilian body of the Highway Authority. He also served as a pioneer officer during the First and Second Schleswig Wars, during which two of his brothers died.