Skip to main content
12-Amethyst
September 13, 2021
Solved

Solid.Regenerate throws XToolkitGeneralError

  • September 13, 2021
  • 1 reply
  • 1750 views

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.

Best answer by jack15

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.

1 reply

24-Ruby III
September 14, 2021

@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.

jack1512-AmethystAuthorAnswer
12-Amethyst
September 14, 2021

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.