Hi @Hebe,
Object attribute “ViewportId” does not influence visibility settings, but specifies in which single viewport or layout detail the object is visible.
according to the documentation, you should be able to undo the change by setting “ViewportId” to None
For most purposes, rhino command ‘hideInDetail/showInDetail’ or layout layer visibility works fine and any changes are easy to revert in the UI.
Best regards,
Tim