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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Delete a component from an assembly using VB Api

Askarke
9-Granite

Delete a component from an assembly using VB Api

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!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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"

View solution in original post

5 REPLIES 5
VladimirN
24-Ruby II
(To:Askarke)

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"

Top Tags