SDK example AccuDrawDemo includes file adrwdmt.r. That file is compiled by the Bentley resource compiler (i.e. it's not a C++ source file). It contains some arcane data structures and some unexplained magic numbers …
adrwdmt.r
#include <Mstn\MicroStation.r.h> #include <RmgrTools\Tools\datadef.r.h> #include <RmgrTools\Tools\cexprrsc.r.h> // struct adrwdemoinfo is defined in adrwdemo.h CexprName 0 = {"adrwdemoinfo"}; CexprName 1 = {"showAxes"}; CexprName 2 = {"useCPlane"}; CexprNamedStructures 1 = {{ {0, 0, 218519819}, /* adrwdemoinfo */ }}; /* struct adrwdemoinfo */ CexprType 0 = {18, 8, 0, 0, 0}; CexprType 1 = {4, 4, 0, 65535, 0}; CexprMemberList 0 = {{ {0x1, 0, 1, 0x2c006df5}, /* showAxes */ {0x1, 4, 2, 0x7600db45}, /* useCPlane */ }};
Can anyone provide enlightenment?
Hi Jon Summers,
Let me check into providing more details behind the CexprName ASCII instance names/IDs, RscTypes (CexprType), and CexprMemberList entry - encoding/decoding convention; since the documentation in cexprrsc.r.h is sparse.
Bob