Returns the identifiers of the inserted instances of a block.
rhinoscriptsyntax.BlockInstances (block_name)
rhinoscript.block.BlockInstances (block_name)
block_name |
Required. String or guid. The name of an existing block definition. |
List |
A list of strings identifying the instances of a block if successful. |
import rhinoscriptsyntax as rs
strBlock = rs.GetString("Block to select")
if rs.IsBlock(strBlock):
arrObjects = rs.BlockInstances(strBlock)
if arrobjects:
rs.SelectObjects(arrObjects)