As the name suggests, the Rename_Signal command allows users to rename signals in the workspace.
Rename_Signals /FILE_NAME= /Signal_Types= /Signal_Names= /Signal_Folder= /NEW_SIGNAL_NAME= ! /APPEND_TO_OLD_SIGNAL_NAME=FALSE /INCLUDE_CALFILE=FALSE ;
Multiple signals can be renamed with a single command by concatening “original” and “new” signal names with the + character.
Rename_Signals /FILE_NAME=*.c3d /SIGNAL_TYPES=TARGET /SIGNAL_FOLDER=ORIGINAL /SIGNAL_NAMES=lft1+lft2 /NEW_SIGNAL_NAME=lft1a+lft2a ! /APPEND_TO_OLD_SIGNAL_NAME=FALSE ! /INCLUDE_CALFILE=FALSE ! /CALFILE_ONLY=FALSE ;
Signals can be renamed across all files in the workspace by using the * wildcard in the FILE_NAME parameter.
Rename_Signals /FILE_NAME=*.c3d /SIGNAL_TYPES=DERIVED /SIGNAL_NAMES=Derived1 /SIGNAL_FOLDER=PROCESSED /NEW_SIGNAL_NAME=Derived2 ! /APPEND_TO_OLD_SIGNAL_NAME=FALSE /INCLUDE_CALFILE=TRUE ;
There are two methods for renaming a signal in the GLOBAL workspace. The first is to make the GLOBAL workspace active; the second is to prefix the signal name.
Rename_Signals /FILE_NAME= /SIGNAL_TYPES=P2D /SIGNAL_NAMES=OLDNAME /SIGNAL_FOLDER=ORIGINAL /NEW_SIGNAL_NAME=NEWNAME /APPEND_TO_OLD_SIGNAL_NAME=FALSE /INCLUDE_CALFILE=FALSE ;
Rename_Signals /FILE_NAME= /SIGNAL_TYPES=P2D /SIGNAL_NAMES=GLOBAL::OLDNAME /SIGNAL_FOLDER=ORIGINAL /NEW_SIGNAL_NAME=NEWNAME /APPEND_TO_OLD_SIGNAL_NAME=FALSE /INCLUDE_CALFILE=FALSE ;