Rhino 7 & 8: Get Updated STEP Import/Export Settings in session via API

Hi @dale @Gijs

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.

Thanks!

hi @Ram_D these settings get saved only when the user shuts down Rhino.

Hi @Ram_D,

Also, Rhino only stores non-default values in persistent settings.

– Dale

Thank for reply @dale @Gijs

I noticed the following behavior:

Open Tools → Options.

Click OK.

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?

Hi @Ram_D,

Have a look here:

– Dale