Configuring the Batch-function menu

The Batch-function menu in MasterExplorer is configurable and you can easily add your Lsp scripts to it.
Batch-function

Batch-function

The configuration is held in LSPsettings.xml which is located together with your Lsp script files in the \Scripts\Lsp folder at your IdesFileServer. Below is an extract showing the configuration for one script file.

<LispFunctionSetting>
<FileName>UPDATE</FileName>
<Description>Update from database</Description>
<CheckOut>true</CheckOut>
<ShortCut>true</ShortCut>
</LispFunctionSetting>

 

FileName is the name of the file without extension. Extension of the file must be .lsp as that is the only supported extension.

Shortcut determines wether it will be shown in the right menu.

Description is the text presented to the user.

CheckOut determines if the documents will be checked out and in by the batch engine.

The setting that deserves the most attention is the CheckOut flag. Consider what your script file does and set the flag accordingly. After the batch engine checks the drawing out and performs the batch actions it will check the drawing in again. In the case you’ve got project management the check in will be project logged.

It is quite common that batch functions are used to plot and in that case it is often prefereable not to check the drawings out. If set true the batch engine will halt on error if your batch cointains drawings that are not allowed to be checked out. Reasons to not allow check out could be that the drawing is approved or in the case of project management that the drawing is currently involved in a project other than the users active project.

1 reply

Trackbacks & Pingbacks

  1. […] you plan to configure quick access to something highly configurable like the batch menu or the plugin menu it is a good idea to keep shortcuts in mind when naming the contents of those […]

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *