Remove Parameter Name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Remove Parameter Name
I have a Model in my Creo Session.I named Some Parameter of my model .Is it possible to remove the parameter or delete the parameter.
Ex:Here I named some Parameter Col1,Col2,Col3,Col4,Col5 respectively.I want to delete all the parameter except Col1 by using J-Link .Is it possible ?.I don't know where to start.Suggest some Ideas.
Thanks in Advance.
- Labels:
-
Jlink
- Tags:
- crep parametric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I found pfcModelItem.Parameter.Delete .but not sure about how to start .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
What you are showing in the image is dimensions, not parameters. A parameter is a variable value that you can set and use in relations, etc. I don't know if you can delete a dimension via a program if it is being used in the definition of a sketch or other entity. A parameter can be deleted as long as it has not been used in a relation. If you just want to get rid of the particular dimension name, you could rename the dimension to something else, perhaps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Here I provided Col1,Col2,Col3,Col4,Col5 name in model.So I want to delete all the names except Col1.Is it possible?
Thanks for your Response Mr.Kenneth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
as Kenneth Farley told you ... you cannot delete Col1,Col2,Col3,Col4,Col5, because these symbols represent model dimension driving model geometry. You can rename them, if you do not want see Col2,Col3,Col4,Col5 names.
MH
Martin Hanák
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes You are Right @ KennethJ.Farley
I understand what is Parameter and i want to delete some parameter by using J-Link .
Session session = pfcGlobal.GetProESession();
Model model=session.GetCurrentModel();
Parameter Param = null;
String parmselect="dim1";
Param=model.GetParam(parmselect);
if((Param.GetName().equalsIgnoreCase(parmselect))){
Param.Delete();
}
In this method am deleting my parameter Successfully. But I can't able to delete the Locked Parameter.Is it possible to remove the Locked Parameter .Thanks in Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
you have to identify the the cause of parameter locking. Usually parameter is locked because of relations. If you remove relation which sets parameter value, the parameter won't be locked anymore and you can delete it.
MH
Martin Hanák
