Returns the block name of a block instance.
rhinoscriptsyntax.BlockInstanceName(object_id)
rhinoscript.block.BlockInstanceName(object_id)
object_id |
Required. String or Guid. The identifier of an existing block insertion object. |
String |
The block name if successful. |
import rhinoscriptsyntax as rs
strObject = rs.GetObject("Select block")
if rs.IsBlockInstance(strObject):
print rs.BlockInstanceName(strObject)