/Engine/Source/Runtime/Datasmith/CADKernel/Public/CADKernel/Core/Entity.h
To Serialize a TSharedPtr, the Id of theFEntityis saved in the archive (ArchiveId). At the deserialization of the archive, a map is build linking ArchiveId to theTSharedPtrof the deserialized entities. At the deserialization of a TSharedPtr, the ArchiveId of the TSharedPtris get. The map return the associatedTSharedPtr. If the Entity is not yet deserialized, theTSharedPtris add to a waiting list to be set as soon as the associated Entity is deserialized SeeFDatabasefor more details
static void SerializeIdent ( [FCADKernelArchive](API\Runtime\CADKernel\CADKernel\Core\FCADKernelArchive) & Ar, [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [FEntity](API\Runtime\CADKernel\CADKernel\Core\FEntity) > & Entity, bool bSaveSelection )