Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hello everybody,
I want to delete all old parameters of a part/assembly by a mapkey. I assumed it wasn't quite difficult, but I can't select all parameters!?
The problem is the fact there are different numbers of parameters. So, indepent of how many parameters I have, the mapkey should delete all the old parameters!
The reason I want this, is because I build up a new format with parameters. The models already made should be populated with these parameters and filled in.
Thanks already for the reactions!
Solved! Go to Solution.
As Don mentioned ModelCHECK is one of the best options to remove unwanted parameters. There is an article at PTC web about removing unwanted parameters using ModelCHECK.
https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS49875
ModelCHECK has the ability to delete parameters (search the PDF for 'PARAM_UNWANTED'). You have to know the name of each parameter and list it in the ModelCHECK files but this should work. Be careful that any of the names you want to use do not match names listed for deletion. ModelCHECK also has the ability to rename parameters, so any of the old parameters similar in function to your new ones could be re-purposed with this.
A mapkey would have to change the parameter filter so it doesn't show system parameters (or so it only shows user-created parameters). Then you may be able to define it to just delete the first parameter in the list over and over until no more parameters exist. The problem with this will be any parameters that are locked (typically by a relation, but not always) will most likely cause the mapkey to fail or to loop itself trying to delete a locked parameter.
I don't have much experience with Toolkit but I'm pretty sure that has the ability to scrub parameters out of your files.
Raymond,
if you are experienced user, then you can set config.pro option new_parameter_ui no and create a mapkey which:
param.inf file format
Symbolic constant X-refs Current value
----------------- ------ ------- -----PARAM_NAME_1 Local ""
PARAM_NAME_2 Local ""
trail_remove_parameters.txt file format
!trail file version No. 1600
!Creo TM 2.0 (c) 2015 by PTC Inc. All Rights Reserved.
#DELETE
!%CPSelect parameters to delete.
#PARAM_NAME_1
#PARAM_NAME_2
#DONE
Martin Hanak
Unfortunately I'm not an experienced user. It seems to be quiet complexe, so if you've got a simplyer solution it would be great!
I am on Creo 4.0 if it makes any difference, but I run the following syntax saved in 'trail_remove_parameters' and it crashes the program:
!trail file version No. 1600
!Creo TM 2.0 (c) 2015 by PTC Inc. All Rights Reserved.
#DELETE
!%CPSelect parameters to delete.
#MC_CONFIG
#MC_ERRORS
#MC_MODE
#MODEL_CHECK
#DONE
Not sure it should be this difficult to delete unwanted driven-parameters... server offline doesn't help either.
Trail version could be wrong. It changes with new versions. Create a dummy mapkey to get the latest trail version.
Those are system parameters and you need to be using the old UI to delete them. See the comments above for the config.pro option. Those parameters are connected to ModelCheck and Windchill, so they may be restricted.
ModelCheck is the better tool for manipulating parameters.
Finally, do NOT ask a new question attached to a 4 year old thread. Create a new thread for your new question!
As Don mentioned ModelCHECK is one of the best options to remove unwanted parameters. There is an article at PTC web about removing unwanted parameters using ModelCHECK.
https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS49875
Hello Mahesh and Don,
Thanks. It takes a while, but it's working now. The next step I want to do is put in the new parameters by modelcheck. It should work also by that.
Raymond
Hi Raymond,
Yes, ModelCHECK can add parameters as well.