BlockPath

Returns the path to the source of a linked or embedded block definition.  A linked or embedded block definition is a block definition that was inserted from an external file.

Syntax

rhinoscriptsyntax.BlockPath (block_name)

rhinoscript.block.BlockPath (block_name)

Parameters

block_name

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

Returns

String

The path to the linked block file is successful.

Example

import rhinoscriptsyntax as rs

strBlock = rs.GetString("Block name to list path")

if rs.IsBlockEmbedded(strBlock):

    print rs.BlockPath(strBlock)

Also See

IsBlock

IsBlockEmbedded