mdlSharedCell

I'd like to know more about the mdlSharedCell API.  Specifically what functions are in it?  Also how do I interface/use them?

Thanks in advance,

Christmas May

  • Hi Christmas,

    Unknown said:
    I'd like to know more about the mdlSharedCell API. 

    Consult MicroStation SDK documentation, namely MDLAPIFunctionReference.chm.

    Unknown said:
    Specifically what functions are in it? 

    You did not provide any information what MicroStation version you use, but e.g. MicroStation V8i (SELECTseries 4) SDK documentation provides exact list of available functions.

    Unknown said:
    Also how do I interface/use them?

    It's not quite clear what are you asking for, the question is a bit too fuzzy. Every function is described in detail including its purpose and parameters, so it should be clear how to use them. And if a particular functions is not clear, please explain what function is it. Of course for the understanding of MDL API it's required to know C language and also MicroStation internals and data structures like Element Descriptor etc.

    With regards,

      Jan

  • Unknown said:
    What functions are in the Shared Cell API?

    I'll take a wild guess that you want to do something with Shared Cells in VBA.  VBA doesn't have much support for Shared Cells.

    As Jan wrote, the mdlSharedCell_api is comprehensive.  However, it's not especially easy to use from VBA (it's not that easy to use from MDL  8-)).  The MDL function reference provides VBA declarations for nearly all MDL functions.  For example...

    mdlSharedCell_extract

    • Extract information from a shared cell instance element or shared cell definition element. If output parameters are NULL, the function does not attempt to fill them in. All parameters are returned in the current coordinate system.

    VBA Wrapper Declaration

    • Declare Function mdlSharedCell_extract Lib "stdmdlbltin.dll" ( _
      ByRef origin As Point3d , _
      ByRef shape As Point3d , _
      ByRef rMatrix As Matrix3d , _
      ByRef scale As Point3d , _
      ByVal override As Long , _
      ByVal cellName As Long , _
      ByVal bufferSize As Long , _
      ByVal sCell As Long , _
      ByVal modelRef As Long ) As Long

    Follow Jan's recommendation: download and install the MicroStation SDK. That provides you with the MDL Function Reference Manual. The function reference manual provides you with the VBA declaration for each function.

     
    Regards, Jon Summers
    LA Solutions