BlockInstances

Returns the identifiers of the inserted instances of a block.

Syntax

rhinoscriptsyntax.BlockInstances (block_name)

rhinoscript.block.BlockInstances (block_name)

Parameters

block_name

Required.  String or guid.  The name of an existing block definition.

Returns

List

A list of strings identifying the instances of a block if successful.

Example

import rhinoscriptsyntax as rs

strBlock = rs.GetString("Block to select")

if rs.IsBlock(strBlock):

    arrObjects = rs.BlockInstances(strBlock)

    if arrobjects:

        rs.SelectObjects(arrObjects)

Also See

BlockInstanceCount

BlockInstanceInsertPoint

BlockInstanceXform

IsBlockInstance