View Single Post
  #2  
Old 01-05-2017, 02:39 PM
Andy Poulsen Andy Poulsen is offline
Administrator
 
Join Date: Apr 2003
Location: Fort Collins, Colorado
Posts: 273
Re: Problem with delete_elem_info

Hi,

There are at least two different ways to remove INFOs from elements.

The DELETE_ELEM_INFO command deletes *ALL* of the INFO strings from the selected elements (which may or may not be a problem). If you only want to remove the "idBusinessData:100" INFO string, you should use the CHANGE_ELEM_INFO command.

Also, you only need the INFO_NAMESPACE option to delete if you used it when creating the INFO string.

So, if you wanted to delete all of the INFO strings for elements that had an INFO string of "idBusinessData:100" you could use the following command:

Code:
DELETE_ELEM_INFO SELECT GLOBAL INFOS 'idBusinessData:100' CONFIRM END
Or, if you just wanted to remove that INFO string from every element, you could use the following command:

Code:
CHANGE_ELEM_INFO 'idBusinessData:100' '' SELECT GLOBAL INFOS ALL CONFIRM END
What this does is change the INFO string from 'idBusinessData:100' to '' (an empty string), which deletes the INFO string. Note that instead of ALL in the above command, you could specify an info string to search for, in which case the info strings would be deleted for matching elements.

I hope this helps!

andy
__________________
Andy Poulsen
AI MAXTools: Dream. Design. Done. It's that easy!
Add-ins bringing new functionality and speed to Creo Elements/Direct and CoCreate products. Now available for v17-v20+!
See them in action at www.ai-maxtools.com and then try them for yourself -- FREE!

Last edited by Andy Poulsen; 01-07-2017 at 08:21 AM.
Reply With Quote