pyplot.insert_bar_code - pytha-3d-cad/pytha-lua-api GitHub Wiki

Inserts a bar code on one or more plot sheets.

pyplot.insert_bar_code(sheet, text [, options])
Parameter Type Description
sheet element_handle or { element_handle* } Element handle to one or more plot sheets
text string The text encoded in the bar code
options table (optional) Placement and size options

Return value

Type Description
{ element_handle* } or nil A table containing the created bar code detail handles. nil if operation failed

options table

The options table can contain one or more of the following keys:

Property Type Description
size {number, number} Width and height of the bar code on the sheet
position {number, number} Origin on the plot sheet
angle number Rotation angle

Example:

local codes = pyplot.insert_bar_code(sheet, "1234567890", {
    position = {180, 20},
    size = {40, 15}
})

Remarks:

The function inserts one bar code object on each target sheet.

If size is omitted, the default bar code size from the current plot settings is used.

The bar code text must not be empty.

The returned handles are plot detail handles.

Version Support:

Minimum PYTHA Version: V26

See also:

pyplot.insert_qr_code, pyplot.insert_text