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

@WCrihfield yes, here is what I'm looking for. In our work we mainly name a part's File Name descriptively (no particular part number, but rather, for example "mounting bracket" or "main frame tube 1" etc. though frame generated parts I let be). This makes it easier for the designer to find an assembly or part in a Windows folder. Instead of being part "102-405" it's "main frame tube 1". 

 

With this code I would copy the file name (it worked better to copy the part name from Inventor's model tree, but now I forget why that was) to the part's Description iProperty. I typically run this code once, just before creating the technical / shop drawings and probably not again. If I need to tweak a part's Description, I do that leaving the part's file name as it was - so as not to have to deal with further issues there. In the Parts List of a dwg/dxf drawing each part gets its Part Name as it is given in the BOM. So the File Name is not the same as the Part Name, but the description may very well be what the File Name is. 

 

For some reason I think you had mentioned the potential issues before but I've forgotten about that. Yes, there could very well be subassemblies and parts found in multiple subassemblies.

 

Does this help? Would you suggest I stick with what I have and simply run the code as I have it in each subassembly?

 

Thank you much!