ProFeatureWithoptionsResume Issues
- February 8, 2017
- 2 replies
- 4593 views
Hello,
I am having some issues with the ProFeatureWithOptionsResume Toolkit function in Creo 3 (M110). I am using this function with the PRO_FEAT_RESUME_INCLUDE_PARENTS option so that it will resume any suppressed parents. In some situations, this function is locking up Creo with a fatal error. I have not figured out why, but when I change the option to PRO_FEAT_RESUME_NO_OPTS, it no longer locks up Creo, but it returns PRO_TK_SUPP_PARENTS and does not resume the feature.
I have tried using the deprecated ProFeatureResume function, and it performs the same as ProFeatureWithOptionsResume when using PRO_FEAT_RESUME_NO_OPTS.
I have also created a function to try and recursively resume a feature and any suppressed parents, but when I use that on the feature in question, none of its parent features are suppressed according to ProFeatureStatusGet.
Can anyone guide me to figuring out why the resume function is locking up Creo when using the option to include suppressed parents?
Can anyone help me overcome this issue?
Update - after further examining the feature in question. The feature I am resuming requires a redefinition to properly regenerate. That's probably what the root cause of all of this is, but changing the regeneration option in ProFeatureWithOptionsResume to PRO_REGEN_CAN_FIX doesn't change anything. Why won't this option allow the user to fix the regeneration failure? Why does the resume function crash Creo when the feature fails to regenerate? Why does the resume function indicate there are suppressed parents when that is not the case?
Thanks,
Corey
P.S. - Attached is my recursive function that I'm trying to use to resume a feature and all of its suppressed parents.
Message was edited by: Corey Van Sickle

