CoCreate User Forum

CoCreate User Forum (https://www.cocreateusers.org/forum/index.php)
-   CoCreate Modeling (https://www.cocreateusers.org/forum/forumdisplay.php?f=5)
-   -   delete part info (https://www.cocreateusers.org/forum/showthread.php?t=8299)

andrea 11-21-2017 11:37 PM

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

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

inqallatts

johrndorf 10-19-2018 04:09 AM

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.

Andy Poulsen 10-22-2018 07:45 AM

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

andrea 05-30-2019 06:54 AM

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?

andrea 06-04-2019 08:04 AM

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" ??

Andy Poulsen 06-14-2019 02:12 PM

Re: delete part info
 
1 Attachment(s)
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


All times are GMT -8. The time now is 01:06 PM.

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