Have been working on a small tool which would tag any blocks in my file with their name as dot.
However, it seems to be only giving me the object Id and I am unsure why this is happening. it prints me the correct name within the python editor, but the dot is different.
import rhinoscriptsyntax as rs
strObject = rs.GetObject(“Select block”)
if rs.IsBlockInstance(strObject):
print rs.BlockInstanceName(strObject)
bb=rs.BoundingBox(strObject)
text=" {}".format(strObject)