Drawings SDK provides the ability to execute any amount of various commands. Some commands require only the command name to execute them (for example, the TDFILEPRODUCT command), other commands require parameters (for example, the LINE command), and some commands provide dialog boxes for setting properties (for example, the VIEW command).
The following examples describe how to work with commands using the OdaMfcApp sample application.
In OdaMfcApp, start commands by selecting one of the following options:
You can stop the command at any time by pressing ESC.
Some commands start work immediately after they are called. But some commands wait for actions from the user. Such commands show dialog boxes or display information in a command prompt. The structure of such a command in a command prompt is next:
command: command_name
Instruction text [Option1 Option2 ... OptionN] < Current Option >:
After this message you should choose one of these options:
You can repeat the last command by doing one of the following in OdaMfcApp:
Copyright © 2002 – 2020. Open Design Alliance. All rights reserved.
|