You can not make a UIM Tool without the Close option. An alternative is to create your tools in an empty worksheet window and then set the PAGE.CLOSEBITS property to 1. The Close option will still be available, but will not work and will generate a warning message. Additionally, if PAGE.SYSWIN is set to 1 for this window, then it will persist across projects.
Thanks Greg, but next problem is why macro EndOpen (in macros.cnf file) does not work. My problem is that I'd like to open a template at any time and any way I start Origin. If I start it from Start Menu the macro autoexec works but when I open by doublclicking *.opj or any other origin document the macro EndOpen is inactive. What should I do?
The EndOpen macro (normally left undefined in MACROS.CNF) has very limited use. Specifically, it 'fires' if:
It is defined in MACROS.CNF
(Be sure to remove the enclosing comments.)
Origin's Command Line (or Target in Shortcut parlance) specifies a project file to open.
Once Origin starts, that macro is no longer used. You should consider two other macros:
DocBegin (Defined in ORGSYS.CNF)
and
AutoExec (Defined in MACROS.CNF)
Autoexec will run if you start Origin without any project or select File:New Project. DocBegin will run whenever you open a project either within Origin or by double-clicking on an OPJ in Explorer or dragging an OPJ from Explorer to a running Origin with no project open.