Quick and Dirty Copy GUID to Clipboard

G’day all,

Just a quick and dirty tool to copy a curves guid to clipboard as text.

Useful for quickly amending copied text fields to reference a new curve, rather than using What on the curve.

import rhinoscriptsyntax as rs

def copyIDtoClipboard():
    
    obj=rs.GetCurveObject("Select a curve.",True,False)
    strID=rs.coerceguid(obj[0],True)
    rs.ClipboardText(strID)
    
                    
if __name__=="__main__":
    copyIDtoClipboard()

cheers,
Nick