Finding the math behind the range of deviation, facet tolerance in export stl

Hi, I’m trying to create a macro that converts geometry into STL files. The problem is that, based on the “Export to STL” API documentation, there is no public access to the range for deviation and facet tolerances in the STL export options. Here is the link to the API help:

https://help.solidworks.com/2023/english/api/swconst/filesaveasstloptions.htm#Obsolete

These ranges are important to me because, depending on the geometry, the software UI automatically adjusts the allowed tolerance range. If the value I pass through the API is outside that range, SolidWorks clamps it. I need control over these tolerances because I want to generate multiple STL files at different levels of detail.

I’ve searched through the API to find a way to read or access these tolerance ranges for the currently opened model, but so far I haven’t found any method to do this.

So, if anyone knows a way to retrieve the tolerance limits for the active model’s geometry—or a method to calculate these ranges in code—I would appreciate your help.
Thanks in advance!