Hi. Would it be possible to get the name of a parent block displayed as text in a text field?
Best,
Anika
Hi. Would it be possible to get the name of a parent block displayed as text in a text field?
Best,
Anika
Hi Anika - you can fake it by adding UserText to the block instance and then setting that user text as the ‘fX’ in Text
import rhinoscriptsyntax as rs
def test():
id = rs.GetObject("Selct a block instance", filter = 4096, preselect=True)
if not id: return
rs.SetUserText(id, 'BlockName', rs.BlockInstanceName(id))
test()
Hi Wim, hi Pascal. Cool, just tried the Usertext work around with the script… that seems to work fine, thanks a lot…