Wish - Allow Copy Object Type Name

When I have long block names (long strings) and want to reference them in GH for example, I’d like to be able to copy the string from the Object Inspector in Rhino, but to my surprise the Type field is stone dead. Can’t be selected, and the value can’t be copied.


I really need this for hundreds of blocks (with looooong block names) to be referenced from Grasshopper.

// Rolf

Hi Rolf - the info in the What command can be copied. Also, here’s a quick python:

import rhinoscriptsyntax as rs

id = rs.GetObject('Select a block instance', filter=4096, select = True, preselect=True)
if id:
    name = rs.BlockInstanceName(id)
    print 'Block instance name ' + chr(34) +  name +  chr(34) + ' copied to the clipboard.'


1 Like