Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Getting XToolkitRegenerateAgain Exception

ssnivas

New member
Hi,


I am getting XToolkitRegenerateAgain exception while calling assembly.Regenerate(null);


Following is my code.
com.ptc.pfc.pfcModelItem.Parameter parameter = assembly.GetParam("LM");
double value = parameter.GetValue().GetDoubleValue();
ParamValue paramValue = pfcModelItem.CreateDoubleParamValue(1700);
parameter.SetValue(paramValue);


assembly.Regenerate(null);


Can Somebody help me in resolving this issue?
 
Hi,


this is "intended" functionality I think. So you can determine if you have to perform a second regeneration of your model.


I am not familiar with Jlink, but Toolkit and weblink. in Weblink I simply use a "try-catch" block to check for an exeption being thrown by Mdl.Regenerate(). If there is the exception, I regenerate again.


Andreas
 

Sponsor

Articles From 3DCAD World

Back
Top