I’m developing a Rhino plug-in and I’m facing an issue with the STEP Import/Export settings in both Rhino 7 and Rhino 8.
When a user opens the STEP Import/Export options and changes the settings, I’m unable to retrieve the updated values through PersistentSettings. The PersistentSettings object appears to return the previous/old values instead of the values that the user just changed in the UI.
Is there a supported way in the Rhino 7/8 API to retrieve the latest/updated STEP Import and Export settings after the user changes them?
Any API, event, command, or recommended approach to access the updated settings would be greatly appreciated.
The updated value is immediately reflected in the settings-Scheme__Default.xml file without shutdown rhino.
However, in this case I get the updated value in PersistentSetttings and settings-Scheme__Default.xml.
This made me wonder:
Is there any other file, cache, or internal storage where Rhino temporarily holds the changed Options values before they are committed to settings-Scheme__Default.xml?
If so, is there a RhinoCommon API to access those updated values directly, or an API to force Rhino to commit/save them immediately, similar to clicking Tools → Options → OK?