Thank-you Jürgen and Clay. à This is just
what I needed.
It's been one of those days…
Cheers,
David
From:Sent: November 21, 2006 16:42
To: adepters@arbortext.com
Subject: RE: Reclaiming Print
Composer license during Editor session
Hi David--
To make it even more transparent, you can
use the print complete hook in conjunction with license_release() to return the
license as soon as printing is complete:
# define function to return composer
license
function returnlicense() {
$result = license_release("PrintPublishing");
}
# set hook to return PC license when done
printing
add_hook(printcompletehook,returnlicense);
There is one caveat with this: the print
complete hook doesn't get called if there is an error during printing. In that
case, you'd need to either close your Epic session or invoke license_release()
in some other way (via the menus as
Jürgen
recommends or from command line). But in most circumstances this should work
fine.--Clay
<span<br/>style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:<font<br/>size=2 face=Tahoma>
Sent: Tuesday, November 21, 2006
3:33 PM
To: adepters@arbortext.com
Subject: Re: Reclaiming Print
Composer license during Editor session
Hello David
look to the acl function license_release.
This works in the command line or from a acl script.
I have made a menue, were the authors can release the pc license:
the line creating the menu entry to release the print composer:
menu_add .TANNER. "Release Print Composer" -cmd
license_release("PrintPublishing");
<span<br/> style='font-size:10.0pt'>Germany<font<br/>size=2 face="Courier New"> <font<br/>size=2 face="Courier New"><font<br/>size=2 face="Courier New">
Taylor, David
S. wrote:
<font<br/>size=2 face=Arial>Our users
(authors, editors and translators) will be 'editing' 85-90% of the
time and occasionally generating Postscript output of the file they're
working on.
<font<br/>size=3 face="Times New Roman">Editor and
Print Composer have separate licenses and here is the situation I'm
trying to deal with…
<font<br/>size=3 face="Times New Roman">We're
using concurrent licenses and when an Editor session is started it takes a
license from the pool. No problem. However, if the user then
composes their document, a PC license is also taken from the pool. This
PC license is attached to the edit session and will not be returned until the
edit session is closed, even if the composition processing only takes one or two
minutes. This prevents efficient sharing of the PC license even though
the usage of the PC license is only for a small percentage of the usage time of
the Editor license.
<font<br/>size=3 face="Times New Roman">I've
looked through the documentation for environment variables and the resourceinfo
file that sits in the license directory. I don't see a way to have
the PC license returned separately once a composition process has finished.
<font<br/>size=3 face="Times New Roman">Has anyone
done this before? Does anyone have any suggestions on how to do this?
<font<br/>size=3 face="Times New Roman">David
<font<br/>size=3 face="Times New Roman">
<font<br/>size=3 face="Times New Roman">
<font<br/>size=1 face="MS Sans Serif">Institute for Research in Construction
<font<br/>size=1 face="MS Sans Serif">National Research Council