Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
emanuel.c
in reply to: WCrihfield

Hi @WCrihfield Yes, my file naming is same as yours. And I suppose it wouldn't be a big deal if the Description iProperty would be written multiple times if the part or subassembly is found multiple times throughout the assembly, as in different subassemblies.

 

I wouldn't necessarily fill in Description on a per document basis. I would do it one time from the top assembly level and then modify it if needed. (Sometimes it can be a bother to change the file name and replace the part.) 

 

I don't mind if the Description is pulled from the file name or the component name. Both would work, but at that point with whatever help I had that worked well (which it may have been @A.Acheson who helped). But after a while of digging through the subassemblies to run the code, I thought it be great to have it run from the top level assembly down to all subassemblies and parts included.

 

So yes, if you can help I'd be very grateful. I just didn't know how to make the For loop run through all the subassemblies and parts. I'm still try the "AllReferencedDocuments" which @A.Acheson mentioned.