bdeSaveBlockParametersTabAsImage

Saves a parameters tab of the dialog box of a given block. Must be saved as .png, .jpg, or .jpeg. Block must be inline. This means the block is not included in the library system.

Syntax

bdeSaveBlockParametersTabAsImage(block, pathname, tab);

Inputs

block
The block that the parameters are in and the block that the dialog box is for.
Type: block
pathname
Path to save the block to.
Type: string
tab (optional)
The number that correlates to which tab to save as an image. Starts at 0 for first tab and increases by one for each following tab. Default value is = 0.
Type: integer

Examples

Save a block's dialog tab as an image:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(d);
          bdeSaveBlockParametersTabAsImage(block, 'C:\Users\user\testFolder/test.jpg', 0);