When a UDE definition is created via the UDE Definition Create dialog, then a number of supporting assets are created by Adams View automatically:
■Six macros are created when UDE definition is created. Those are placed under UDE definition itself and have the following naming convention:
■UDEDEF_Name.copy
♦This is place holder macro which can be modified by user if he wants to add certain pre_copy operations (for example, copying cetain additianal markers). This will be called automatically when user tries to copy an instance (before actual copy operation)
■UDEDEF_Name.dbox_display
♦This macro opens up the UDE instance modify dialog box
■UDEDEF_Name.pre_delete
♦This is place holder macro which can be modified by user if he wants to add certain pre_delete operations (for example, delete some associated part connected to UDE instance which could be delete_dependent of the instance). This will be called automatically when user tries to delete an instance (before actual delete operation)
■UDEDEF_Name. UDEDEF_Name_create
♦This is autogenerated macro based on inputs and parameters of UDE definition. Parameters form optional argument, whereas inputs form required argument for UDE definition. Default parameters are captured from objects selected for UDE definition creation. This macro is also embedded on default UDE instance creation dialog box. The Instance create dialog box is auto populated with default values of parameters keeping input fields blank.
■UDEDEF_Name. UDEDEF_Name_modify
♦This is autogenerated macro based on inputs and parameters of UDE definition. Parameters form optional argument, whereas inputs form required argument for UDE definition. Modify dialog box is populated with parameters and inputs from UDE instance. This macro is also embedded on default UDE instance modification dialog box.
■UDEDEF_Name. UDEDEF_Name_replace
♦This is place holder macro which can be modified by the user. It serves two purposes:
Do additional operation while replacing UDE instance with another ISA type definition. This is automatically called by AVIEW UDE instance replace call before actually replacing the instance.
Supporting legacy UDE definitions saved in BIN files. If a legacy BIN file is opened in new release, REPALCE macro is automatically called. If user has made some changes in UDE definition in current release then the BIN will be updated based on REPALCE macro.
■All these macros are stored in .cmd file
■If user opens the cmd file in text editor and edits those macros, those will be available in new session after opening the UDE definition cmd file.
■When a UDE definition is modified all the macros are regenerated to support modified definition parameters.