Returns the identifiers of the objects that make up a block definition.
rhinoscriptsyntax.BlockObjects (block_name)
rhinoscript.block.BlockObjects (block_name)
block_name |
Required. String or Guid. The name of an existing block definition. |
List |
An array of strings identifying the objects that make up a block definition if successful. |
import rhinoscriptsyntax as rs
strBlock = rs.GetString("Block name to list identifiers")
if rs.IsBlock(strBlock):
objects = rs.BlockObjects(strBlock)
if objects:
for item in objects: print item