cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

How to force completeness check upon Save, Save As, File Close, etc.

gbaronian
4-Participant

How to force completeness check upon Save, Save As, File Close, etc.

Could not find this information anywhere, and thought I'd share the solution. 

 

Basically, you will create new aliases for the FileSave, FileSaveAs and FileClose commands in Arbortext.  There is a default commands.acl file delivered with Arbortext, and you will create a custom version that will override only three commands.  Note that if the completeness check finds errors, it will leave the log open for the user to review even after the file has closed.

 

  1. Create a new text file: arbortext_home/custom/init/commands.acl
  2. Open arbortext_home/packages/commands.acl.  From this file, copy whichever commands you would like to modify.  In this case, I copied FileSave, FileSaveAs and FileClose.
  3. Update the existing code to contain whatever steps you would like.  Below, I am pasting the contents of a working custom commands.acl that performs completeness check upon Save, Save As or File Close.
#
# Defines simple command aliases (macros) for actions assigned to keyboard
# shortcuts or menus.
# 08/04/2017 - modified so that completeness check runs before a save or close.

alias FileSave	{
	check_completeness();
	save
}

alias FileSaveAs	{
	save_as;
	check_completeness()
}

alias FileClose		{
  check_completeness();
  if (!window_get(0, 'embedded')) {
    file_close()
  }
}

 

1 REPLY 1

This is good of you to share! Thank you for adding to community.

Top Tags