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

Parents
  • 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

Reply
  • 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

Children
No Data