BlockInstanceName

Returns the block name of a block instance.

Syntax

rhinoscriptsyntax.BlockInstanceName(object_id)

rhinoscript.block.BlockInstanceName(object_id)

Parameters

object_id

Required.  String or Guid.  The identifier of an existing block insertion object.

Returns

String

The block name if successful.

Example

import rhinoscriptsyntax as rs

strObject = rs.GetObject("Select block")

if rs.IsBlockInstance(strObject):

    print rs.BlockInstanceName(strObject)

Also See

BlockInstanceCount

BlockInstances

BlockInstanceXform

IsBlockInstance