bdeGetBlockFromBlockParametersEditor

Returns the block that the editor is being used for.

Syntax

blockFromEditor = bdeGetBlockFromBlockParametersEditor(editor)

Inputs

editor
The editor to get the block from.
Type: block

Outputs

block
The block that the editor is being used on.
Type: block

Examples

Get a block from a block editor:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          widget = bdeGetTopLevelWidget();
          dialog = bdeCreateBlockParametersDiaglogFromBlock(block, widget, false);
          blockEditor = bdeGetBlockParametersEditor(dialog);
          blockFromEditor = bdeGetBlockFromBlockParametersEditor(blockEditor);
        

          
            blockFromEditor = hwscpHyperBlock