IsBlockEmbedded

Verifies that a block definition is embedded, or linked, from an external file.

Syntax

rhinoscriptsyntax.IsBlockEmbedded (block_name)

rhinoscript.block.IsBlockEmbedded (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.IsBlockEmbedded(strBlock):

        print "The block definition is embedded."

    else:

        print "The block definition is not embedded."

else:

    print "The block definition does not exist."

Also See

IsBlock

IsBlockInstance

IsBlockInUse

IsBlockReference