Hello, inspired by the new SetDetailBorder command, here is a Python script for Rhino 9 that creates a detail based on the shape options provided via the command line. I hope you find it useful. Cheers.
CreateDetailFromShape.py (35.2 KB) (Updated - V3)
Here you will find if you need it the icons for the button.
This command works in Rhino 9 to run a script from a button (Button Editor):
! _-ScriptEditor _Run “CopyHereYourPythonScriptFilePath” ! _-ScriptEditor _Run “C:\PythonScript\CreateDetailFromShape.py” (example)
Button svg icons: