|
Prisms Development Toolkit Documentation
Side Effects Software Inc. 1997
|
Custom SOP Reference
The SOPUSAGE Macro
This (very long) character string will be action's response to a
help -yoursop- command. Like the Help page, it is basically
straightforward. But unlike Help, continuation characters ( \ ) are used
to define a long string, and C format characters should be used; in
particular, \t (tab) to set off arguments, and \n (newline) to end
each line.
IMPORTANT: the name of the sop must have the letter 's' prepended to
it to match Action's internal parsing.
All of these things can be seen in our Circle example:
#define SOPUSAGE \
"scircle [-c x y z] [-r rad] [-O plane] [-p divs] [-t type]\n\
\t\t[-b angle] [-e angle]\n\
\t-c The center of the circle\n\
\t-r The radius of the circle\n\
\t-O The orientation of the circle (xy, yz or zx)\n\
\t-p The number of line segments used to make the circle"
Note that the SOP's name is 'scircle'.
Tookit Overview
Expression Functions |
User Functions |
Custom SOPs
Prisms Internal Format |
Programmer's Reference
Compiling SOPs |
Using sopbuild |
SOP Routine Reference
Dynamic SOPs |
Prisms Types |
Macros
Math Routines |
Data Routines |
Polygon Routines |
Winged-edge Routines
Copyright © 1997 Side Effects Software Inc.
477 Richmond Street West, Toronto, Ontario, Canada M5V 3E7