How to work with commands with dialogs: open, save, findtext, etc

<< Click to Display Table of Contents >>

Navigation:  How To >

How to work with commands with dialogs: open, save, findtext, etc

Question:  how to work with commands with the dialogs: open, save, findtext, etc.,  automatically, without the user dialog?

To call the open, save, saveas, findtext commands with parameters without the user dialog it is necessary to set the filedia flag as 0.

Command

filedia 0 - dialogs will not appear

filedia 1 - dialogs will be shown

It is recommended to return the filedia parameter to 1 after handling the needed command automatically.

<?xml version="1.0" encoding="UTF-8"?>
<cadsofttools version="2.0">
   <!-- Save as PNG: save Filename.png Width Height Bitperpixel[default = 24] -->
 <command text="filedia 0">
 <command text="save &quot;C:\Users\User\Documents\Image1.png&quot; 200 100"/>
 <command text="filedia 1">
</cadsofttools>

 

 

 

Go to CADEditorX