Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
I am working with the java object toolkit API for Creo 7 and I am running into this issue where when I attempt to regenerate an assembly it fails and throws XToolkitGeneralError. I can regenerate the same model that throws this error using Creo so I do not believe it to be an issue with the Creo model. I am wondering why it is throwing that exception. Any insight to this issue would be greatly appreciated.
Solved! Go to Solution.
Hi,
This is not the issue that I was facing. I believe I have been able to resolve my issue thankfully.
In case there is someone else experiencing something similar what seemed to be my issue is that I had the model open when the program began and I brought it into memory again using Session.RetrieveModel but I never assigned the return from this method to my model. This seems to be what caused the issue as when I removed the RetrieveModel call regenerating the model worked.
@jack15 wrote:
I am working with the java object toolkit API for Creo 7 and I am running into this issue where when I attempt to regenerate an assembly it fails and throws XToolkitGeneralError. I can regenerate the same model that throws this error using Creo so I do not believe it to be an issue with the Creo model. I am wondering why it is throwing that exception. Any insight to this issue would be greatly appreciated.
Hi,
please read https://www.ptc.com/en/support/article/CS323327 document.
Hi,
This is not the issue that I was facing. I believe I have been able to resolve my issue thankfully.
In case there is someone else experiencing something similar what seemed to be my issue is that I had the model open when the program began and I brought it into memory again using Session.RetrieveModel but I never assigned the return from this method to my model. This seems to be what caused the issue as when I removed the RetrieveModel call regenerating the model worked.