BlockStatus

Returns the status of a linked block.

Syntax

rhinoscriptsyntax.BlockStatus (block_name)

rhinoscript.block.BlockStatus (block_name)

Parameters

block_name

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

Returns

Number

The current status.

Value

Description

-3

Not a linked block definition.

-2

The linked block definition's file could not be opened or could not be read.

-1

The linked block definition's file could not be found.

0

The linked block definition is up-to-date.

1

The linked block definition's file is newer than definition.

2

The linked block definition's file is older than definition.

3

The linked block definition's file is different than definition.

Example

import rhinoscriptsyntax as rs

block = rs.GetString("Block name to list description")

if rs.IsBlock(block):

    status = rs.BlockStatus(block)

    print "block status for", block, "is", status

Also See

BlockURL

BlockURLTag

IsBlock