SolidWorks API for Orient/Scale to Fit

In SolidWorks 2018, there is option to for Print3D where user can do the Orient to Fit OR Scale to Fit. [Please refer attached snap]

Is there any SolidWorks API based on C++ available for these operations?

SolidworksApi macros