MDL Syntax

Hello. New guy here...well, old new guy :D

Was a MicroStation user for many years (many years ago) and took the one and only MDL programming course that was available at the time. Getting sucked back into the MicroStation world and trying to recompile an MDL app. I'm slowly working my way through it, but have hit something I'm not sure how to fix. I looked and am not finding much in the help files.

The offending line of code is:

mdlBitMask_logicalOperation(
 (*type)->view.files[k].levels,
 view->files[j].levels,
 BITMASK_OR);

I understand the the arguments are now BitMaskP and BitMaskCP, but just have no idea what the above code is doing. Are there resources out there to explain what this syntax means?

Thanks in advance for any direction...

Parents
  • Located in C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\Documentation folder should be two chm files.  MDLAPIFunctionReference.chm and MDLProgrammerGuide.chm. 

    Your path name could be slightly different.

    mdlBitMask_logicalOperation is described in the Function reference.  Search for mdlBitMask_logicalOperation and you should find the description of the function.

    Jon can probably describe exactly what the code is doing but my guess looking at the call is it's trying to turn on any levels that are on in the "j" file on in the "k" file while leaving alone any levels already on in "k" since it's doing an "OR".  (Again, this is a guess so I could be completely wrong).

    In any case, if you didn't already know about the two documentation files they should be helpful to you.  I believe they get installed when you install the SDK so they won't be there otherwise.

    Regards,

    Mike Lazear

Reply
  • Located in C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\Documentation folder should be two chm files.  MDLAPIFunctionReference.chm and MDLProgrammerGuide.chm. 

    Your path name could be slightly different.

    mdlBitMask_logicalOperation is described in the Function reference.  Search for mdlBitMask_logicalOperation and you should find the description of the function.

    Jon can probably describe exactly what the code is doing but my guess looking at the call is it's trying to turn on any levels that are on in the "j" file on in the "k" file while leaving alone any levels already on in "k" since it's doing an "OR".  (Again, this is a guess so I could be completely wrong).

    In any case, if you didn't already know about the two documentation files they should be helpful to you.  I believe they get installed when you install the SDK so they won't be there otherwise.

    Regards,

    Mike Lazear

Children