Download CPS-3 Map Editor
Transcript
Schlumberger Creating, Using and Editing Macros Typical Prompting Language Added to a Macro Below, you see some typical macro commands relating to prompting components which are added to macros. These commands are in a file call k_prompt.mac in the external training data for CPS-3. This file could be inserted as it is into a macro if you wanted to prompt for a Data set, and an output Surface set name. As you can see, this file could be used as simple template and you can change the names, or even add others sets to be prompted for. Refer to the on-line User’s Manual for details. Looking at each command in this example, we see that “declare” defines variables such as set names or strings. “let” assigns initial values to the variables “begin_dlg” and “end_dlg” bracket the prompting commands for a single dialog “prompt” activates a single prompt line in the dialog for one variable In general, variables should be declared as set, if they will be used for the selection of existing input sets. Variables declared as string are set by the user only by typed response. Substituting Fixed Set Names with Variable Names The next phase in making a macro universally useful is to find all places lower in the macro where the fixed-name sets are specified, and change them to the appropriate variable name. For example, if the original unedited macro contained the line LECTURE for Topic 22 - 6 GeoFrame 4.0 Introduction to CPS-3