[Artwork] / [QisMLib] / [Programmer's Corner]

QisMLib Script Commands

QisMLib Script CommandsConsole (qismscript64.exe) Commands usage.requiredusage.optionusage.infosleepassertaskifsystemcommandsexitBasic (QisMScript) Commands script.procedurescript.end_procedurescript.callscript.pushscript.popscript.requiredscript.ifscript.setscript.setifscript.ifsetscript.substrscript.tokenizescript.parsescript.branchscript.capturescript.foreachscript.convertscript.renamescript.make_idscript.num_cpusscript.phys_mem_sizescript.file_namescript.file_sizescript.new_window_setscript.delete_window_setscript.window_set_to_filescript.window_set_to_stringscript.print_varsQisMLib Commandslib.load_filelib.load_processed_filelib.load_processed_oasislib.load_processed_hextlib.load_gds_with_mmapslib.unload_fileQisMFile commandsfile.copy_tofile.print_reportfile.get_default_cellfile.print_cellsfile.print_top_cellsfile.print_child_cellsfile.get_cell_extentsfile.print_layersfile.print_cell_tree file.save_memory_mapsfile.create_exploderfile.destroy_exploderQisMExploder commandsexploder.set_viewexploder.get_boundariesexploder.get_cellref_boundariesfile.make_cellref_semiflatexploder.delete_storeexploder.write_texts_to_fileexploder.write_srefs_to_fileexploder.write_arefs_to_fileQisMBStore commandsstore.print_infostore.write_as_polysstore.write_as_imageQisMBoundaries commandsboundariesapi.pre_proc_to_fileboundariesapi.createboundaries.write_cacheboundaries.read_cacheboundaries.clearboundaries.addboundaries.add_lsynthboundaries.add_to_patternizeboundaries.add_snpboundaries.unionboundaries.booleanboundaries.correctboundaries.transformboundaries.get_extentsboundaries.write_gds_oasboundaries.write_imageboundaries.add_to_cad_blockboundariesapi.destroyQisMDraw commandsdraw.imageQisMBool Commandsbool.create_instanceboolinst.exportboolinst.importboolinst.applybool.destroy_instancebool.create_settingsbool.destroy_settingsboolsettings.setboolinst.unionboolinst.binaryboolinst.delete_storebool.unionize_to_fileQisMExplCounter commandsexplcounter.countexplcounter.break_window_by_crossingexplcounter.break_window_by_vertnumexplcounter.delete_windowsQisMWindowProbe commandsprobe.windowQisMCADWriter Commandscadwriter.open cadwriter.begin_cellcadwriter.create_blockcadwriter.boxcadwriter.textcadwriter.box_setcadwriter.bstore cadwriter.boundarycadwriter.pathcadwriter.circlecadwriter.referencecadwriter.commit_blockcadwriter.end_cellcadwriter.closeQisMRaster Commandsraster.create_rasterizerraster.destroy_rasterizerraster.create_paramsraster.destroy_paramsraster.windowraster.px_windowraster.polysraster.overlay_polysraster.synthesizedraster.create_pns_v2_specraster.destroy_pns_v2_specraster.window_pns_v2raster.format_imageraster.queue_mtraster.large_disk_imageraster.get_dpiraster.get_pixelsizeraster.compute_px_szraster.compute_buf_szraster.compute_tile_szraster.get_buffer_infoQisMLOA Commandsloa.create_ann_setloa.destroy_ann_setloa.add_ann_bitmaploa.add_ann_textloa.create_ann_set_from_fileloaset.to_fileloa.merge_ann_with_dbloa.merge_ann_with_snp_dbloa.merge_and_loadloa.unload_dbQisMCorrX Commandscorrx.create_affineaffine.setaffine.transformaffine.transform_bstorecorrx.destroy_affinecorrx.create_optscorrx.destroy_optscorrx.create_corrx_objcorrx.destroy_corrx_objcorrxobj.correct_viewcorrxobj.correct_polyscorrxobj.delete_storecorrxobj.print_corrected_extentscorrxobj.correct_window_extentscorrxobj.correctcorrxobj.correct_bstorecorrxobj.rasterize_windowcorrx.mirror_viewcorrx.shear_viewcorrx.rotate_viewcorrx.scale_viewcorrx.generate_ptsQisMOdbPS Commandsodbps.loadodbps.unloadQisMOdbScan Commandsodbscan.scanodbscan.destroy_resultsodbscan.generate_reportodbscan.print_step_treeodbscan.print_default_top_stepodbscan.print_top_stepsodbscan.print_stepsodbscan.print_step_tree_depthodbscan.print_step_childrenodbscan.print_step_all_descendantsodbscan.print_step_layersodbscan.print_step_all_layersodbscan.print_layersodbscan.print_layer_typeodbscan.print_layer_contextodbscan.print_profile_extentsodbscan.print_unique_feature_attributesodbscan.query_feature_attributesodbscan.generate_features_reportodbscan.scan_attr_locationsodbscan.destroy_attr_locationsodbscan.print_attr_layersodbscan.print_attr_feature_linesodbscan.print_attr_feature_line_coordsodbscan.print_attr_feature_line_tagsodbscan.print_attr_feature_line_toolodbscan.query_attr_locations_by_tagodbscan.query_attr_locations_by_textodbscan.query_attr_locations_by_dcodeQisMGbrPS commandsgbrpsfile.print_metagbrpsfile.save_gdsgbrps.unloadgbrps.loadgbrpsfile.query_dcodesdcodes.listdcodes.xydcodes.infodcodes.write_to_filegbrpsfile.destroy_dcodesQisMSnPUtil Commandssnputil.create_explodersnputil.destroy_explodersnpexploder.get_boundariessnpexploder.destroy_storesnputil.unionize_to_filesnputil.booleanize_two_filesQisMHextract Commandshextract.create_extractorhextract.destroy_extractorhextract.create_optshextract.destroy_optshextract.create_regionshextractregions.addhextract.destroy_regionshextractor.extract_to_writerhextractor.extract_to_filehextract.create_dbhextractfile.save_ashextract.destroy_dbhextract.select_dbuQisMRTCR commandsrtcr.create_optsrtcr.destroy_optsrtcr.create_correctionsrtcr.destroy_correctionsrtcr.create_annotationsrtcrannotations.addrtcr.destroy_annotationsrtcr.setup_jobrtcr.end_jobrtcrjob.create_rasterizerrtcrjob.get_raster_imagertcrjob.destroy_rasterizerQisMMRtcr Commandsmrtcr.scan_infomrtcr.new_optsmrtcr.delete_optsmrtcr.new_imagemrtcr.delete_imagemrtcr.clear_imagemrtcr.generate_scanQisMLayerSynth commandslsynth.new_synthesizerlsynth.delete_synthesizerlsynth.synthesize_layerslsynth.delete_storeQisMBoolFiles commandstwofiles.xorQisMClipExtract commandsclip.extract_imagesclip.extract_polygonsclip.extract_lsynthQisMPatterns Commandspatterns.createpatterns.create_from_bstorepatterns.create_from_viewpatternizer.write_to_cadpatternizer.write_to_imgpatterns.destroyQisMOasUtil Commandsoas2gdsiioas2dbloadoas2ascii

Console (qismscript64.exe) Commands

These commands are only applicable when using the scripting console (qismscript64.exe) to execute scripts or commands

usage.required

usage.option

usage.info

sleep

assert

askif

system

commands

exit

Basic (QisMScript) Commands

Various utility commands that aid in the development of a script Available to all applications using the QisMLib system with scripting enabled

script.procedure

script.end_procedure

script.call

script.push

script.pop

script.required

script.if

script.set

script.setif

script.ifset

script.substr

script.tokenize

script.parse

script.branch

script.capture

script.foreach

script.convert

script.rename

script.make_id

script.num_cpus

script.phys_mem_size

script.file_name

script.file_size

script.new_window_set

script.delete_window_set

script.window_set_to_file

script.window_set_to_string

script.print_vars

QisMLib Commands

See qismlib.h for the relevant C++ API

lib.load_file

lib.load_processed_file

lib.load_processed_oasis

lib.load_processed_hext

lib.load_gds_with_mmaps

lib.unload_file

QisMFile commands

See qismfile.h for relevant C++ API

file.copy_to

file.print_report

file.get_default_cell

file.print_cells

file.print_top_cells

file.print_child_cells

file.get_cell_extents

file.print_layers

file.print_cell_tree

file.save_memory_maps

file.create_exploder

file.destroy_exploder

QisMExploder commands

exploder.set_view

exploder.get_boundaries

exploder.get_cellref_boundaries

file.make_cellref_semiflat

exploder.delete_store

exploder.write_texts_to_file

exploder.write_srefs_to_file

exploder.write_arefs_to_file

QisMBStore commands

See qismbstore.h for relevant API

store.print_info

store.write_as_polys

store.write_as_image


QisMBoundaries commands

boundariesapi.pre_proc_to_file

Generate a GDSII file based on a series of boundary operations on a database

boundariesapi.create

Create a new boundary set

boundaries.write_cache

Dump a boundary set to a file on disk (cache file)

boundaries.read_cache

Replace the specified boundary set with the contents of a disk dump (cache file)

boundaries.clear

Clear the boundary set

boundaries.add

Add boundaries to the specified set

boundaries.add_lsynth

Add the result of layer synthesis to the specified set

boundaries.add_to_patternize

Add the specified set to a patternizer object

boundaries.add_snp

Add boundaries from a paint&scratch database

boundaries.union

Unionize the contents of the specified set

boundaries.boolean

Add boundaries formed by a boolean operation between two sets

boundaries.correct

Apply bi-linear transformation to the boundaries in the specified set

boundaries.transform

Apply affine transformation to the boundaries in a set

boundaries.get_extents

Get the extents of a set

boundaries.write_gds_oas

Write a set to GDSII or OASIS

boundaries.write_image

Write a set to a 1bpp raster image

boundaries.add_to_cad_block

Add a set to a CAD data block

boundariesapi.destroy

Destroy a boundary set

QisMDraw commands

See qismdraw.h for the corresponding C++ API

draw.image

QisMBool Commands

See qismbool.h for the relevant C++ API

bool.create_instance

boolinst.export

boolinst.import

boolinst.apply

bool.destroy_instance

bool.create_settings

bool.destroy_settings

boolsettings.set

boolinst.union

boolinst.binary

boolinst.delete_store

bool.unionize_to_file

QisMExplCounter commands

See qismexplcounter.h for the relevant C++ API

explcounter.count

explcounter.break_window_by_crossing

explcounter.break_window_by_vertnum

explcounter.delete_windows

QisMWindowProbe commands

See qismwindowprobe.h for relevant C++ API

probe.window

QisMCADWriter Commands

cadwriter.open

cadwriter.begin_cell

cadwriter.create_block

cadwriter.box

cadwriter.text

cadwriter.box_set

cadwriter.bstore

cadwriter.boundary

cadwriter.path

cadwriter.circle

cadwriter.reference

cadwriter.commit_block

cadwriter.end_cell

cadwriter.close

QisMRaster Commands

raster.create_rasterizer

raster.destroy_rasterizer

raster.destroy_rasterizer $rstr={rstr_id}

raster.create_params

raster.destroy_params

raster.destroy_params $params={params_id}

raster.window

raster.px_window

raster.polys

raster.overlay_polys

raster.overlay_polys $rstr={rstr_id} $bin={bin_id} [mode={PAINT | SCRATCH | DITHER}]

raster.synthesized

raster.create_pns_v2_spec

raster.destroy_pns_v2_spec

raster.window_pns_v2

raster.format_image

raster.queue_mt

raster.large_disk_image

raster.get_dpi

raster.get_pixelsize

raster.get_dpi pixelsize={x}[,{y}] [units_m={units_in_meter}] [&var={var_id}] raster.get_pixelsize dpi={x}[,{y}] [units_m={units_in_meter}] [&var={var_id}]

raster.compute_px_sz

raster.compute_buf_sz

raster.compute_tile_sz

raster.get_buffer_info

QisMLOA Commands

QisMScript Commands to define and add rich annotations (texts, bitmaps) to CAD data

loa.create_ann_set

Create a new annotation set and associates it with a script variable name {id} of type QisMLOAset*

loa.destroy_ann_set

Destroys an annotation set represented by the script variable named {id} of type QisMLOAset*

loa.add_ann_bitmap

Add a bitmap based annotation item to the set

loa.add_ann_text

Add a text string based annotation to the set

loa.create_ann_set_from_file

Create an annotation set from a file in an internal Artwork format (SFGen)

loaset.to_file

Generate a GDSII file from the annotation set

loa.merge_ann_with_db

Merge annotation set with the specified db and create a new CAD file on disk

loa.merge_ann_with_snp_db

Merge annotation set with the specified paint&scratch db and create a new paint&scratch CAD file on disk

loa.merge_and_load

Create a new db from the merger of an existing db and one or more annotatition sets

loa.unload_db

Destroy a database created by loa.merge_and_load

QisMCorrX Commands

QisMScript Commands to compute 2D affine and bi-linear transformations on CAD data

corrx.create_affine

Create a new affine transformation object

affine.set

Add transformations to the affine object

affine.transform

Apply affine transformation to a set of points

affine.transform_bstore

Apply affine transformation to a set of boundaries

corrx.destroy_affine

Destroy an affine object

corrx.create_opts

Create a settings object for use with corrx.create_corrx_obj

corrx.destroy_opts

Destroy a settings object

corrx.create_corrx_obj

Create a new instance of the correction object

corrx.destroy_corrx_obj

Destroy an existing correction object

corrxobj.correct_view

Fetch and correct boundaries from a view of the database

corrxobj.correct_polys

Correct a set of polygons

corrxobj.delete_store

Destroy a container of corrected boundaries

$bin={bin_id} is the name associated by the container to be destroyed that was created using appropriate commands of this module

corrxobj.print_corrected_extents

Print the corrected extents of the entire space associated with this correction object

corrxobj.correct_window_extents

Correct a window (manhattan rectangle)

corrxobj.correct

Correct a list of points

corrxobj.correct_bstore

Correct a container of boundaries

corrxobj.rasterize_window

Correct and rasterize a view of the database

corrx.mirror_view

Compute reflection as a set of correction points

corrx.shear_view

Compute shear as a set of correction points

corrx.rotate_view

Compute rotation as a set of correction points

corrx.scale_view

Compute scaling as a set of correction points

corrx.generate_pts

Generate a set of pseudo-random correction points based on a given set of constraints

QisMOdbPS Commands

QisMScript Commands to -- Create a spatial paint&scratch database from ODB++ files

odbps.load

odbps.unload


QisMOdbScan Commands

QisMScript Commands to retrieve ODB file information about stepnames, layers, and structure


odbscan.scan

odbscan.destroy_results

odbscan.generate_report

odbscan.print_step_tree

odbscan.print_default_top_step

odbscan.print_top_steps

odbscan.print_steps

odbscan.print_step_tree_depth

odbscan.print_step_children

odbscan.print_step_all_descendants

odbscan.print_step_layers

odbscan.print_step_all_layers

odbscan.print_layers

odbscan.print_layer_type

odbscan.print_layer_context

odbscan.print_profile_extents

odbscan.print_unique_feature_attributes

odbscan.query_feature_attributes

odbscan.generate_features_report

odbscan.scan_attr_locations

odbscan.destroy_attr_locations

odbscan.print_attr_layers

odbscan.print_attr_feature_lines

odbscan.print_attr_feature_line_coords

odbscan.print_attr_feature_line_tags

odbscan.print_attr_feature_line_tool

odbscan.query_attr_locations_by_tag

odbscan.query_attr_locations_by_text

odbscan.query_attr_locations_by_dcode

QisMGbrPS commands

QisMScript commands to create a database from a Gerber (RS274X) file

gbrpsfile.print_meta

Print meta-information about the Gerber from which a db was created

gbrpsfile.save_gds

Save a GerberPS db as GDSII

gbrps.unload

gbrps.load

Create a GerberPS (paint & scratch) db from a Gerber file

gbrpsfile.query_dcodes

dcodes.list

dcodes.xy

dcodes.info

dcodes.write_to_file

gbrpsfile.destroy_dcodes

QisMSnPUtil Commands

snputil.create_exploder

snputil.destroy_exploder

snpexploder.get_boundaries

snpexploder.destroy_store

snputil.unionize_to_file

snputil.booleanize_two_files

QisMHextract Commands

hextract.create_extractor

hextract.destroy_extractor

hextract.create_opts

hextract.destroy_opts

hextract.create_regions

hextractregions.add

hextract.destroy_regions

hextractor.extract_to_writer

hextractor.extract_to_file

hextract.create_db

hextractfile.save_as

hextract.destroy_db

hextract.select_dbu

QisMRTCR commands

rtcr.create_opts

rtcr.destroy_opts

rtcr.create_corrections

rtcr.destroy_corrections

rtcr.create_annotations

rtcrannotations.add

rtcr.destroy_annotations

rtcr.setup_job

rtcr.end_job

rtcrjob.create_rasterizer

rtcrjob.get_raster_image

rtcrjob.destroy_rasterizer

QisMMRtcr Commands

Commands to use the QisMMRtcr extension within the QisMLib scripting system

mrtcr.scan_info

mrtcr.new_opts

mrtcr.delete_opts

mrtcr.new_image

mrtcr.delete_image

mrtcr.clear_image

mrtcr.generate_scan

QisMLayerSynth commands

lsynth.new_synthesizer

lsynth.delete_synthesizer

lsynth.synthesize_layers

lsynth.delete_store

QisMBoolFiles commands

twofiles.xor

QisMClipExtract commands

clip.extract_images

clip.extract_polygons

clip.extract_lsynth


QisMPatterns Commands

QisMScript Commands to group polygons into repeating patterns

patterns.create

patterns.create_from_bstore

patterns.create_from_view

patternizer.write_to_cad

patternizer.write_to_img

patterns.destroy

QisMOasUtil Commands

QisMScript Commands to pre-process OASIS files

oas2gdsii

oas2dbload

oas2ascii


ARTWORK CONVERSION SOFTWARE, INC.
417 Ingalls St. Unit C, Santa Cruz, CA 95060 831.426.6163  email: info@artwork.com

Last Updated -- Tue Feb 10 18:58:05 UTC 2026