bdeGetBlockFullName

Gets the full name of the given block.

Syntax

fullName = bdeGetBlockFullName(block, includeRoot)

Inputs

block
The block to get the name of.
Type: block
includeRoot (optional)
Boolean to decide whether or not the root should be included when returning the full name. If not used then automatically will not include the root.
Type: Boolean

Outputs

fullName
The full name of the block.
Type: string

Examples

Get a block's full name, with the root included:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          fullName = bdeGetBlockFullName(block, true)
        

          fullName = Root/blockname
        
Get a block's full name, without the root included:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          fullName = bdeGetBlockFullName(block, false)
        

          fullName = blockname