Check higher versions for Assembly components
Hello,
We have an application in Java to check, before saving a model in CREO, if a higher version of the model exists, preventing saving in case it exists.
It works for the active model. But if the active model is an assembly, and if a component has been modified, when saving the assembly, it checks the assembly’s version, but doesn’t control the versions of the components.
I would like to know how to control the components’ versions.
This is what we use for the model:
import com.ptc.pfc.pfcGlobal.pfcGlobal;
import com.ptc.pfc.pfcModel.Model;
import com.ptc.pfc.pfcSession.Session;
Session curSession = pfcGlobal.GetProESession();
Model model = curSession.GetCurrentModel();
Best regards,
Amaia

