delete part info
how can I delete specific info on a 3D part?
info viewed with the command: (load "inq_all_atts") inqallatts |
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. |
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 |
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? |
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" ??
|
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 06:39 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.