In case someone hadn’t seen it - which there’s a good chance - I thought I’d just sayin’:
Neither in SketchUp Release Notes, nor in SketchUp API Release Notes announced, but there are new Class methods in UI module to handle the clipboard text (only String ) , since SketchUp 2023.1.
UI.set_clipboard_data-class_method
UI.get_clipboard_data-class_method
def clipboard_test
json = Sketchup.active_model.rendering_options.to_h.to_json
UI.set_clipboard_data(json)
text = UI.get_clipboard_data
end
Thanks a lot for this!
![]()
@tt_su, @ChrisFullmer Would be nice to update the above mentioned Release Notes as well as the Ruby API doc in UI.set_clipboard_data and put the required Parameter description…
(I need to figure out my password on GitHub
to be able to post there… someone else may can do it.)