That's the only way I know (we have an AddIn that calculates the code angles for you but it's not a freebie)