When adding an object-referenced coordinate system, the API is not as clean as we'd like. Here's an example use case:
So far so good. However, configuration of the axis system is does not conform to the usual API usage, and requires detailed knowledge of the underlying classes:
The same exceptions are posted for the secondary and (presumably) all of the axis system settings defining orientation. Sigh. This works:
but the Help is really not very useful:
I think perhaps there is a bit of clean-up needed for the coordinate system code.