The documentation when followed generates the following error message:
While this error has a help page, it does not explain any specific corrective action that can be done.
The Wrapper statement, from the MDL help is:
Declare Function mdlSheetDef_getBorderAttachmentId Lib "stdmdlbltin.dll" ( ByVal sheetDefIn As Long , ByRef borderAttachmentIdOut As DLong ) As Long
There is also a property in the VBA SheetDefinition object named MdlSheetDef that, according to its help "Retrieves the associated SheetDef pointer that a program can use as an argument to MDL mdlSheetDef functions."
With no example, we cannot determine how to use this or even if this is the way to use the subject wrapper function.
We seem to have hit a brick wall on this and need help from a Bentley Programmer.
Jon - I will file a bug report on mdlSheetDef_setBorderAttachmentId, thank you for pointing this out.
Charles - Although you could call mdlSheetDef_setBorderAttachmentId with CExpression similar to Item 1 below, your original question was on mdlSheetDef_getBorderAttachmentId. Once you had the Sheet ID, what were you going to do with it after? The reason I ask is if your end goal is to get/set the ModelReference Sheet Properties, than you could do so using the ModelReference Object directly, or via the Properties of the ModelReference Object via CreatePropertyHander using the current MdlSheetDef. See Item 2 below.
Thank you,Bob