bdeLoadBlockTemplate

Tells whether or not the block is loaded from a template.

Syntax

loadedTemplate = bdeLoadBlockTemplate(block, type)

Inputs

block
The block to check if loaded from template.
Type: block
type (optional)
Default type is the string 'parameters'. Also an option to use the string 'atom'. Uses these to see if they are loaded from the block's template parameters.
Type: string

Outputs

loadedTemplate
Boolean that tells whether the block is loaded from a template or not. Blocks loaded from a template will return 1, whereas blocks not loaded from a template (e.g. super blocks) will return 0.
Type: Boolean

Examples

Find whether a block is loaded from a template (using block from template 'system/MathOperations/Sum'):

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          loadedTemplate = bdeLoadBlockTemplate(block)
        

          loadedTemplate = 1
        
Find whether a block is loaded from a template (using super block):

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          loadedTemplate = bdeLoadBlockTemplate(block)
        

          loadedTemplate = 0