Macro commands may be used either in macros or by sending the commands to DPlot via dynamic data exchange (DDE). Some commands are valid only in macros (noted by Macros Only). Commands sent to DPlot via DDE must be enclosed by square brackets [ ]. Macro commands should not include the brackets.
Command parameters shown in the descriptions below are placeholders for the actual values. Command parameters are either numeric values, equations that evaluate to numbers, or character strings. Character string parameters are always bound by double quotation marks. Equations must be preceded by an equals sign (=).
The pipe symbol (|) in the command syntax indicates that a parameter is optional, and should not be included in your macro unless otherwise noted.
All indices into arrays are 1-based, e.g. Curve1=1 refers to the first curve in a plot.
A 0x prefix for numbers in the descriptions below indicates hexadecimal notation; e.g. 0x0010 = 16.
JR/Viewer indicates that the command is supported by DPlot Jr or DPlot Viewer.
JR/Viewer indicates that the command is NOT supported by DPlot Jr or DPlot Viewer.
[GrainSizeFlags(flags|,other|)] |
|
Controls the appearance of a grain size distribution plot. flags is a combination of:
0x00000001 | Specify sieve size labels. If this bit is not set, bits 1 through 27 are ignored and all of the sieve sizes mentioned below will be drawn (if they will fit on the plot without overlapping and the plot extents include the given size) |
Bits 1-27 specify which sieve size labels to draw, dependent on bit 0x40000000 (British sizes, see below).
bit |
U.S. sizes |
British sizes |
0x00000002 |
6 inch |
125 mm |
0x00000004 |
4 inch |
75 mm |
0x00000008 |
3 inch |
63 mm |
0x00000010 |
2 inch |
50 mm |
0x00000020 |
1-1/2 inch |
37.5 mm |
0x00000040 |
1 inch |
28 mm |
0x00000080 |
3/4 inch |
20 mm |
0x00000100 |
1/2 inch |
14 mm |
0x00000200 |
3/8 inch |
10 mm |
0x00000400 |
#3 |
8 mm |
0x00000800 |
#4 |
6.3 mm |
0x00001000 |
#6 |
5 mm |
0x00002000 |
#8 |
3.35 mm |
0x00004000 |
#10 |
2.36 mm |
0x00008000 |
#12 |
2 mm |
0x00010000 |
#16 |
1.7 mm |
0x00020000 |
#20 |
1.18 mm |
0x00040000 |
#30 |
0.850 mm |
0x00080000 |
#40 |
0.600 mm |
0x00100000 |
#50 |
0.425 mm |
0x00200000 |
#60 |
0.300 mm |
0x00400000 |
#70 |
0.250 mm |
0x00800000 |
#100 |
0.212 mm |
0x01000000 |
#140 |
0.150 mm |
0x02000000 |
#200 |
0.125 mm |
0x04000000 |
#270 |
0.075 mm |
0x08000000 |
#400 |
0.063 mm |
0x10000000 | Draw bold vertical lines at material-type boundaries |
0x20000000 | Use Udden-Wentworth scale rather than AASHTO scale |
0x40000000 | Use British standard sieve sizes rather than U.S. sizes. |
0x80000000 | X axis increases from left-to-right. |
If bit 0x40000000 of flags is set (use British sizes) OR bit 0x00000001 (specify sieve sizes) is not set, then the optional other parameter is ignored. Otherwise other specifies additional ASTM sieve sizes to draw that are common in the mining industry:
bit |
U.S. sizes |
0x00000001 |
#5 |
0x00000002 |
#7 |
0x00000004 |
#14 |
0x00000008 |
#18 |
0x00000010 |
#25 |
0x00000020 |
#35 |
0x00000040 |
#45 |
0x00000080 |
#80 |
0x00000100 |
#120 |
0x00000200 |
#170 |
0x00000400 |
#230 |
0x00000800 |
#325 |
0x00001000 |
#450 |
0x00002000 |
#500 |
A geometric scale of grain sizes which classifies particles of siliciclastic sediment from 4096 millimeters (boulders) in size down to 0.00006 millimeters (clay). This scale is almost universally accepted by modern sedimentologists (a type of geologist). It was first proposed in 1898 by Udden and then modified and extended in 1922 by Wentworth.
American Association of State Highway
and Transportation Officials
444 North Capitol Street, N.W.
Suite 249
Washington, D.C. 20001
Page url:
https://www.dplot.com/help/index.htm?grainsizeflagscommand.htm