Hi Jon,
I have a mistyping. I want to type
Using declaration ByRef borderAttachmentId As DLong is ok for mdlSheetDef_getBorderAttachmentId because its second parameter's C declaration is ElementID * (a pointer to a structure. acutually ElementID is not a structure, it is just a base type __int64) but not ok for mdlSheetDef_setBorderAttachmentId because its second parameter's delcaration is ElementID.
Thank you, YongAn