SolidWorks Api for UpAixs before SOLIDWORKS 2026

Hello,

I have an SollidWorks API-related question regarding the Up Axis setting.

In the SOLIDWORKS 2026 API, it is possible to get and set the Up Axis via the "IModelView" interface using the UpAxisFlyout property (IModelView) - 2026 - SOLIDWORKS Design Help.

Could you please let me know how the Up Axis can get and set in the API versions prior to SOLIDWORKS 2026? I considered using RunCommand, but I am not sure whether this is the correct approach, as I do not know the Command ID for UpAxis.

I preferred C++.