#1
|
|||
|
|||
delete part info
how can I delete specific info on a 3D part?
info viewed with the command: (load "inq_all_atts") inqallatts |
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
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 v17-v20+! See them in action at www.ai-maxtools.com and then try them for yourself -- FREE! |
#4
|
|||
|
|||
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? |
#5
|
|||
|
|||
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" ??
|
#6
|
|||
|
|||
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
__________________
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! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|