Submitted by oguzhan.aydemir on Fri, 08/26/2016 - 00:50
Forums:
Hello, Is it possibble to write a part name from the part's own attribute. I meant, A part will have an attribute it is called "name". And There will be an assembly which contains a lot of components and parts. And journal will recursively search their name attribute and write it on the part.
re: names from attributes
This article shows how to process all the components of an assembly.
The code here shows how to read a string attribute. It shows how to read a part attribute, reading a component attribute will be similar.
You can assign the attribute value to the component name; then you can turn on object names and the names will show up in the graphics window. You can turn on the object name display by going to Preferences -> visualization -> names/borders -> show object names; recording a journal of this process will give you the necessary code to do it in your program.