Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hi,
I want to ensure the print publishing (print composer) floating license is released after publishing to PDF.
I have implemented using an instance.acl file to add a menu item called "release print license" using the command license_release(PrintPublishing)
menu_add -before .File.Publish.#7 "Release Print License" -cmd {license_release(PrintPublishing)}
But I am stuck on how I should go about bringing up the publish pdf dialog box, putting in all the arguments, THEN releasing the print composer license. Or perhaps, the release_license is triggered by the end of the build process.
Solved! Go to Solution.
Solved
Note, you need print composer installed.
There seems to be only one way to customize your menu when you have no file loaded into arbortext. When you have a file loaded, arbortext will look for the document DTD. In the same folder or directory as the DTD file, you can add an ACL file called instance.acl which you can edit to add menu items.
To customize a menu at start up:
I want to add a button called Release_License from the File Menu, with sub menus. Then make it do stuff.
In the new editmenu.cf file, i'll add my code to where I want the button to appear in the file menu.
separator
"Release_Licenses" menu "File.Release_Licenses"
Menu "File"
{
Other menu items
Other menu items
separator
"Release_Licenses" menu "File.Release_Licenses"
Other menu items
Other menu items
}
Menu "File.Release_Licenses"
{
"Release All Licenses" \
cmd "license_release('All')"
"Release Print License" \
cmd "license_release('PrintPublishing')"
}
This adds "Release_Licenses to the file menu.
Now make it do stuff (release the license).
Add the following after Menu "File"{...} (see above)
Menu "File.Release_Licenses"
{
"Release All Licenses" \
cmd "license_release('All')"
"Release Print License" \
cmd "license_release('PrintPublishing')"
}
Save the file, restart arbortext.
To make a button to publish PDF and then release the license, you could edit the instance.acl file and add the following:
# This adds a menu item in position 1 to
# File > Publish > called "publish pdf and release print license"
#
menu_add -before .File.Publish.#1 "Publish PDF and Release Print License"
menu_change ".File.Publish.Publish PDF and Release Print License" -cmd {
compose_pdf(); #publish dialog box
license_release("PrintPublishing"); #release print composer license
}
Solved
Note, you need print composer installed.
There seems to be only one way to customize your menu when you have no file loaded into arbortext. When you have a file loaded, arbortext will look for the document DTD. In the same folder or directory as the DTD file, you can add an ACL file called instance.acl which you can edit to add menu items.
To customize a menu at start up:
I want to add a button called Release_License from the File Menu, with sub menus. Then make it do stuff.
In the new editmenu.cf file, i'll add my code to where I want the button to appear in the file menu.
separator
"Release_Licenses" menu "File.Release_Licenses"
Menu "File"
{
Other menu items
Other menu items
separator
"Release_Licenses" menu "File.Release_Licenses"
Other menu items
Other menu items
}
Menu "File.Release_Licenses"
{
"Release All Licenses" \
cmd "license_release('All')"
"Release Print License" \
cmd "license_release('PrintPublishing')"
}
This adds "Release_Licenses to the file menu.
Now make it do stuff (release the license).
Add the following after Menu "File"{...} (see above)
Menu "File.Release_Licenses"
{
"Release All Licenses" \
cmd "license_release('All')"
"Release Print License" \
cmd "license_release('PrintPublishing')"
}
Save the file, restart arbortext.
To make a button to publish PDF and then release the license, you could edit the instance.acl file and add the following:
# This adds a menu item in position 1 to
# File > Publish > called "publish pdf and release print license"
#
menu_add -before .File.Publish.#1 "Publish PDF and Release Print License"
menu_change ".File.Publish.Publish PDF and Release Print License" -cmd {
compose_pdf(); #publish dialog box
license_release("PrintPublishing"); #release print composer license
}