Achieving regulatory and code compliance for additive manufacturing