cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

RegenerateRelation is not updating relation value using VB api code

SK_9994711
3-Newcomer

RegenerateRelation is not updating relation value using VB api code

I am using Creo Parametric 2.0 M250

RegenerateRelation api is not modifying relation value in creo2 using VB code

Here are the errors that I faced
pfcExceptions::XToolkitGeneralError
at pfcls.IpfcRelationOwner.RegenerateRelations()
at customApp.modInit.changeDateFromRelation(IpfcModel iObjModel, String strToProcess)
2 REPLIES 2

@SK_9994711  Please make sure that the relations you are writing in the model are valid and do not have any errors. Try writing the exact same relations manually from UI and see if there are any errors. On which Object you are calling RegenerateRelations() ? is it a feature or the model ? Share your code snippet and a sample model if possible.

The relation change made and appended to the model was successful. There were a couple of evaluation errors present in the model which was resulting in warning message "warning Probable error in function evaluation". Due to this, RegenerateRelation() was throwing exception pfcExceptions::XToolkitGeneralError.

 

RegenerateRelation() was successful as expected when there were no relation errors or evaluation warnings present in the model relations.

 

-Seshu

Announcements


Top Tags