CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > CoCreate Drafting

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-03-2017, 02:08 AM
vpapa vpapa is offline
Registered User
 
Join Date: Oct 2016
Location: Castellammare di Stabia (ITALY)
Posts: 5
Problem with delete_elem_info

Hi Boys,
i have added new info with this command:

ADD_ELEM_INFO 'idBusinessData:100' SELECT GLOBAL ALL CONFIRM END

and is ok.

But for remove this i try with
DELETE_ELEM_INFO INFO_NAMESPACE 'Default' 'idBusinessData:100' SELECT GLOBAL ALL CONFIRM END

DELETE_ELEM_INFO but not work
Is possible retreive me the syntax example of command ?
Reply With Quote
  #2  
Old 01-05-2017, 02:39 PM
Andy Poulsen Andy Poulsen is offline
Administrator
 
Join Date: Apr 2003
Location: Fort Collins, Colorado
Posts: 256
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 v15-v20!
See them in action at www.ai-maxtools.com and then try them for yourself!

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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 08:14 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.