[CONNECT C++] Calling undocumented function dgnFileObj_getHighestElementID

Hi,

   in the Connect edition: is there any way, how to call undocumented function like: 

unsigned __int64 Bentley::dgnFileObj_getHighestElementID(struct Bentley::DgnPlatform::DgnFile *)

from DgnPlatform.lib (dgnFileObj_getHighestElementID@Bentley@@YA_KPEAUDgnFile@DgnPlatform@1@@Z)?

my .fdf looks like that:

BEGIN_BENTLEY_NAMESPACE

unsigned __int64 dgnFileObj_getHighestElementID(struct Bentley::DgnPlatform::DgnFile*);

END_BENTLEY_NAMESPACE

when i try to call, an (linker) error appears:

Error LNK2028: unresolved token (0A0000DA) "extern "C" unsigned __int64 __cdecl dgnFileObj_getHighestElementID(struct Bentley::DgnPlatform::DgnFile *)" (?dgnFileObj_getHighestElementID@@$$J0YA_KPEAUDgnFile@DgnPlatform@Bentley@@@Z) referenced in function "public: virtual __int64 __clrcall Hsi::Asw::Interop::Graphics::Model::GetHighestElementId(void)" (?GetHighestElementId@Model@Graphics@Interop@Asw@Hsi@@$$FUE$AAM_JXZ)

Error LNK2019: unresolved external symbol "extern "C" unsigned __int64 __cdecl dgnFileObj_getHighestElementID(struct Bentley::DgnPlatform::DgnFile *)" (?dgnFileObj_getHighestElementID@@$$J0YA_KPEAUDgnFile@DgnPlatform@Bentley@@@Z) referenced in function "public: virtual __int64 __clrcall Hsi::Asw::Interop::Graphics::Model::GetHighestElementId(void)" (?GetHighestElementId@Model@Graphics@Interop@Asw@Hsi@@$$FUE$AAM_JXZ)

thanks for any idea.

Best regards

Jan

Parents Reply
  • Hmm, not sure why these are hidden.

    I will make them available in a future update. in the mean time here are the signatures, if they need to be used.

    Paul

    MSCORE_EXPORT int             mdlAssoc_getHighestUniqueId
    (
    DgnPlatform::ElementId       *highestTagP,   /* <= tag for component of interest    */
    DgnModelRefP    modelRef        /* => model of interest                */
    );

    MSCORE_EXPORT int             mdlAssoc_assignHighestUniqueId
    (
    DgnPlatform::ElementId       *highestTagP,   /* <= tag for component of interest    */
    DgnModelRefP    modelRef        /* => model of interest                */
    );



Children
No Data