IsBlockReference

Verifies that a block definition is from a reference file.

Syntax

rhinocsriptsyntax.IsBlockReference (block_name)

rhinocsript.block.IsBlockReference (block_name)

Parameters

block_name

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

Returns

Boolean

True or false indicating success or failure.

Example

import rhinoscriptsyntax as rs

strBlock = rs.GetString("Block name")

if rs.IsBlock(strBlock):

    if rs.IsBlockReference(strBlock):

        print "The block definition is a reference definition."

    else:

        print "The block definition is not a reference definition."

else:

    print "The block definition does not exist."

Also See

IsBlock

IsBlockEmbedded

IsBlockInUse

IsBlockInstance