CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > CoCreate Modeling

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-22-2017, 12:37 AM
andrea andrea is offline
Registered User
 
Join Date: Sep 2003
Location: italy
Posts: 260
delete part info

how can I delete specific info on a 3D part?

info viewed with the command:
(load "inq_all_atts")

inqallatts
Reply With Quote
  #2  
Old 10-19-2018, 05:09 AM
johrndorf's Avatar
johrndorf johrndorf is offline
Registered User
 
Join Date: Jun 2006
Posts: 14
Re: delete part info

To show what info is attached to the contents of part:

(display (oli::sd-inq-item-attributes (oli::sd-pathname-to-obj "/assembly/part_xy") :attachment :contents))
If you want to know the in attached to the instance, you must replace :contents by :instance.


To remove a block of info:
(sd-detach-item-attribute (oli::sd-pathname-to-obj "/assembly/part_xy") "name of info" :attachment :contents)


You will find more details on this commands in the IKIT documentation.
Reply With Quote
  #3  
Old 10-22-2018, 08:45 AM
Andy Poulsen Andy Poulsen is offline
Administrator
 
Join Date: Apr 2003
Location: Fort Collins, Colorado
Posts: 267
Re: delete part info

In addition to what johrndorf has posted, you can delete portions of an attribute (rather than deleting the entire attribute) using the following command:

(sd-del-item-attribute-values object name values :attachment :contents)

where "name" is the attribute, and "values" specifies the portion(s) of the attribute to delete.

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 -- FREE!
Reply With Quote
  #4  
Old 05-30-2019, 07:54 AM
andrea andrea is offline
Registered User
 
Join Date: Sep 2003
Location: italy
Posts: 260
Re: delete part info

An update that perhaps makes it easier to use.
Can you create a menu that by selecting a part gives me all the attributes of this part with the possibility of editing them?
Is there a similar macro to modify?
Reply With Quote
  #5  
Old 06-04-2019, 09:04 AM
andrea andrea is offline
Registered User
 
Join Date: Sep 2003
Location: italy
Posts: 260
Re: delete part info

or a macro that shows me the value of an attribute of a selected part on a menu type "sd-defdialog" ??
Reply With Quote
  #6  
Old 06-14-2019, 03:12 PM
Andy Poulsen Andy Poulsen is offline
Administrator
 
Join Date: Apr 2003
Location: Fort Collins, Colorado
Posts: 267
Re: delete part info

Hi Andrea,

I was away for a bit, but I think this code might do just what you need:

Please try it and let me know how it works for you.

If there's anything else we can do to help, just ask!

Thanks

andy
Attached Files
File Type: lsp ai-edit-attribs.lsp (12.5 KB, 91 views)
__________________
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 -- FREE!
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 11:35 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 - 2019, Jelsoft Enterprises Ltd.