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.
rhinoscriptsyntax.BlockPath (block_name)
rhinoscript.block.BlockPath (block_name)
block_name |
Required. String or Guid. The name of an existing block definition. |
String |
The path to the linked block file is successful. |
import rhinoscriptsyntax as rs
strBlock = rs.GetString("Block name to list path")
if rs.IsBlockEmbedded(strBlock):
print rs.BlockPath(strBlock)