AnsweredAssumed Answered

Persistent Reference IDs and SpeedPak issue?

Question asked by William Cruz on May 20, 2019
Latest reply on May 21, 2019 by William Cruz

I ran into an issue with Persistent Reference IDs and speedpak. 

So in my code (C#), I am saving a few objects to use later in the app session, see below.

int intType  = _swSelMgr.GetSelectedObjectType3(1, -1); //face for this example
object obj1  = _swSelMgr.GetSelectedObject6(1, -1);  //face for this example
object objRefId  =  _swModelDocExt.GetPersistReference3(obj1);


If the selected entity (face, edge etc.) is part of an assembly that does not have the speedpak active, the following line of code returns the object, but if speedpak is active, it returns null.

object swObjFromPersistId = _swModelDocExt.GetObjectByPersistReference3(objRefId, out RetVal);


Has anyone besides me run into this same issue? I'm working with SW2017.