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 (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.
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.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
loadedTemplate = bdeLoadBlockTemplate(block)
loadedTemplate = 1
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
loadedTemplate = bdeLoadBlockTemplate(block)
loadedTemplate = 0