Returns the names of the block definitions that contain a specified block definition.
Rhino.BlockContainers (strBlock)
strBlock |
Required. String. The name or identifier of an existing block definition. |
Array |
An array of block definition names if successful. |
Null |
If not successful, or on error. |
Dim strBlock, arrBlocks
strBlock = Rhino.GetString("Block name to query")
If Rhino.IsBlock(strBlock) Then
arrBlocks = Rhino.BlockContainers(strBlock)
For Each strBlock In arrBlocks
Rhino.Print strBlock
Next
End If