Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
I have been trying to delete a component from an assembly during some days, but everything, that i´ve tried, has failed.
Yesterday, I found some information about "ExecuteFeatureOps", and I saw that it´s necessary to select "resolve_mode". However, everytime i´ve tried to select that configuration, an error message appears:
"To use a deprecated config option, you will need to supply an authorization code with 'allow_deprecated_config'. Please see article CS260154 for more information."
I don´t know how to resolve it, so I would appreciate if somebody could help me.
Thanks in advance!
Solved! Go to Solution.
To set option regen_failure_handling to resolve_mode, I think, need to set option allow_deprecated_config.
Take a look at https://github.com/SimplifiedLogic/creoson/blob/master/creoson-core/src/com/simplifiedlogic/nitro/jlink/impl/JlinkUtils.java by searching "allow_deprecated_config"
Article - "About deprecated hidden config.pro options in Creo Parametric": https://www.ptc.com/en/support/article/CS260154
I have checked the article but I haven´t been capable of reaching a solution.
My license is an universitary license so, I can´t open a ticket to obtain the key.
I am still stucked in the same step.
I´ve tried to set regen_failure_handling to resolve_mode several times. However, everytime I´ve tried it, it has failed and Solid::ExecuteFeatureOps() has failed with exception pfcExceptions.XToolkitBadContext.
I also have checked article CS325902 but i didn´t obtain any solution.
Thanks in advance!
What Creo version do you using?
Take a look
IpfcRegenInstructions::ResolveModeRegen( true )
I am using PTC Creo 9.0.0.0 and I´ve tried with the following code:
IpfcRegenInstructions regenInstrs = new CCpfcRegenInstructions().Create(false, false, null);
regenInstrs.ResolveModeRegen=true;
IpfcSolid curSolid = (IpfcSolid)Session.CurrentModel;
curSolid.ExecuteFeatureOps(featOperations, regenInstrs);
However, ExecuteFeatureOps is still throwing 'pfcExceptions::XToolkitBadContext'
To set option regen_failure_handling to resolve_mode, I think, need to set option allow_deprecated_config.
Take a look at https://github.com/SimplifiedLogic/creoson/blob/master/creoson-core/src/com/simplifiedlogic/nitro/jlink/impl/JlinkUtils.java by searching "allow_deprecated_config"