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
Call DgnFile::GetHighestID. The dgnFileObj_ function just calls that with the dgnfile pointer you pass in.
Paul
Paul Chater said:Call DgnFile::GetHighestID
Unfortunately, this method is also not published in public API :-(
Regards,
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Ok,
Try this one instead....
mdlAssoc_getHighestUniqueId, mdlAssoc_assignHighestUniqueId is probably a better function to call though.
Paul Chater said:mdlAssoc_getHighestUniqueId, mdlAssoc_assignHighestUniqueId
Not much luck there either...
Searching in *.h: mdlAssoc_assignHighestUniqueId Found 0 occurrence(s) in 761 file(s), 6048 ms Searching in *.h: mdlAssoc_getHighestUniqueId Found 0 occurrence(s) in 761 file(s), 1720 ms Searching in *.fdf: mdlAssoc_getHighestUniqueId Found 0 occurrence(s) in 105 file(s), 1088 ms Searching in *.fdf: mdlAssoc_assignHighestUniqueId Found 0 occurrence(s) in 105 file(s), 403 ms
Regards, Jon Summers LA Solutions
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.