home *** CD-ROM | disk | FTP | other *** search
- ! I-Beam with Reference at Bottom Left
- !!
- !! Double Exclamations are Internal Comments
- !! Single Exlamation is Displayed on Screen
- !!
- !! The First Line if Started with ! will be Displayed
- !! Before Selection of the Reference.
- !! The Reference is considered to be the local origin.
- !!
- !! Users will be prompted for any undefined variable.
- !! It is tidier for the macro to prompt for all variables
- !! at the start.
- !! Variables may be unset by assigning it with a value of
- !! -1.E18.
- !!
- !! Variables starting with % are QikDraw Reserved.
- !!
- %MINVAL=1.E-19
- %MAXVAL=1.E4
- %DEFAULT=40
- !! DEFAULT is the Default value for Prompts
- !! MINVAL and MAXVAL Defines the Allowable Range
- !!
- !! Other Specifications supported are:-
- !! %PEN=val For Pen Number (0-63)
- !! %STYLE=val For Line Style (1-9)
- !! %THICKNESS=val For Line Thickness (1-9) as on menu
- !! %TERMINATORS=val1,val2,val3,val4
- !! val1,val3 are terminator options (1-15)
- !! val2,val4 are terminator size
- !!
- !! Examples of use shown in IBEAM2.MSY
- !!
- !! For obtaining information from the screen drawing,
- !! the following commands can be used:-
- !! %GETPOINT Puts the co-ordinates of the point
- !! located interactively into #0.
- !! %GETLINE Puts the co-ordinates of the end
- !! points of the line located into _0.
- !! %GETCIRCLE Puts the co-ordinated of the centre,
- !! start and end points of the circle
- !! located into @0.
- !! Note that all co-ordinates stored are relative to the
- !! origin (reference point), and that #0, _0 and @0
- !! are resereved variables. Values in @0, _0 and @0
- !! can be assigned to other variables for further use.
- !!
- !! Also, for debugging macros, users can include PRINT
- !! statements, the format is
- !! %PRINT(description)=val1,val2
- !! description may be up to 30 characters not
- !! containing '=';
- !! the = sign must be present before the values;
- !! there can be up to two values (expressions) printed
- !!
- ! Define Breadth of I-Beam
- B
- ! Define Height of I-Beam
- %DEFAULT=90
- H
- ! Define Flange Thickness of I-Beam
- %MAXVAL=H/2
- %DEFAULT=5
- F
- ! Define Web Thickness of I-Beam
- %MAXVAL=B*0.9
- %DEFAULT=3
- W
- ! Define Fillet Radius of I-Beam
- %MAXVAL=(B-W)/2
- %DEFAULT=2
- R
- !!
- !! _ Indicates the Insertion of a Line (Normally 4 Parameters)
- !! _ Followed by Alpha-Numeric Allows for the Assignment
- !! of Sub-Variables.
- !!
- !! # Indicates a Point
- !! #2 represents all sub-variables assigned for the
- !! group. In the following code, #2 will include
- !! #2.1 (The First Part) and #2.2 (The Second Part).
- !!
- _=0,0,0,F
- #3=(B-W)/2,F+R
- #2=#3.1-R,F
- #1=#2.1,#3.2
- _=0,F,#2
- !!
- !! @ Indicates a Circle, similar to Line.
- !! It can have 4, 6 or 9 Sub-Variables.
- !! If 4, It is Circle with Centre and Start Point
- !! 6, It is Arc with Centre, Start and End Points
- !! 9, The Last 3 Para are The Major Axis Point
- !! and Ratio for Ellipses
- !!
- @=#1,#2,#3
- #4=#2.1,H-F-R
- #5=#3.1,#4.2
- #6=#4.1,H-F
- _=#3,#5
- @=#4,#5,#6
- !!
- !! When Line Specified with 2 Parameters, Start is
- !! From Last Position
- !!
- _=#6,0,H-F
- _=0,H
- _=B,H
- _=B,H-F
- #9=#5.1+W,#5.2
- #7=#9.1+R,#9.2
- #8=#7.1,#6.2
- _=B,H-F,#8
- @=#7,#8,#9
- #11=#9.1,#3.2
- #10=#7.1,#3.2
- #12=#10.1,#2.2
- _=#9,#11
- @=#10,#11,#12
- _=#12,B,F
- _=B,0
- _=0,0
- !! Loops are supported by an IF test
- !! The general format is:-
- !! %IF;[expression][operator][expression];[label]
- !!
- !! The operators supported are:-
- !! = Equal
- !! <>,>< Not Equal
- !! > Greater than
- !! < Less than
- !! >=,=> Greater than or equal to
- !! <=,=< Less than or equal to
- !!
- !! If the test condition is fulfilled, the macro will
- !! continue execution at the statement [label].
- !! Labels must start in column one (same for the %IF
- !! statement) and must begin with %%.
- !!
- !! Examples of use of loops are shown in IBEAM2.MSY.