BlockObjects

Returns the identifiers of the objects that make up a block definition.

Syntax

rhinoscriptsyntax.BlockObjects (block_name)

rhinoscript.block.BlockObjects (block_name)

Parameters

block_name

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

Returns

List

An array of strings identifying the objects that make up a block definition if successful.

Example

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

Also See

BlockNames

BlockObjectCount

IsBlock