Sets the current scale of this map, affects BOTH the arbitrary scale and the classic Threshold.
Acad::ErrorStatus SetCurrentScale( double dScale, bool bRegen = true );
Parameters |
Description |
dScale |
Input arbitrary scale. |
bRegen |
Input whether to have Elements regen their acquired entities, regardless of whether a threshold change is occurring. |
Returns Acad::eOk if successful; otherwise, returns a different error code.
This method sets two internal values, an arbitrary "user scale" and the appropriate "map threshold scale", the latter being a threshold value corresponding to scale thresholds available for classic DM Elements. If the change in arbitrary scale does not require a threshold change, no threshold change will occur. Changing the current threshold is not allowed if stylization is on. If the Threshold will change, the caller is required to bracket this call with DismissSylization/UpdateStylization, which will requery the elements of the map.