U225X PUBLIC-SAFE CONVERSATION NOTE RECORD: CHAT-0212 TOPIC: iLogic Rename Assembly Parts IMPORTED: 2025.05.09 This note was generated from a matching conversation in the supplied ChatGPT export. EXTRACTED REQUEST: write an ilogic code for inventor 2023, to rename all parts in an assembly to "25-0217-XXX" I want to replace any multiple parts with the new ones RECOVERED CONVERSATION EXCERPTS USER MESSAGES: 1. write an ilogic code for inventor 2023, to rename all parts in an assembly to "25-0217-XXX" I want to replace any multiple parts with the new ones 2. ERROR ON LINE 14 ASSISTANT RESPONSES: 1. Here's an iLogic code snippet for Inventor 2023 that will: 1. Search all parts in an assembly. 2. Identify parts with the same Part Number (to detect duplicates). 3. Replace those with a new single instance of the renamed part. 4. Rename all unique parts to follow this format: `25-0217-001`, `25-0217-002`, etc. It will also Save and Replace the files to reflect the new names and avoid duplicate instances with the same Part Number.. ✅ iLogic Code – Save & Replace with `25-0217-XXX` Format [code excerpt omitted]. ⚠️ Notes - Backup your assembly first. This modifies file names and performs replacements. - This script assumes: - You're working in an assembly file. - All parts are `.ipt` files. - If your parts are… 2. Thanks for the heads-up. Line 14 in this snippet: [code excerpt omitted] can fail if: - The document is read-only or not fully resolved, - The `"Design Tracking Properties"` set doesn't exist (unlikely, but possible with custom parts), - Or you're trying to access properties of a reference document (like Content Center or library files). Let’s revise the code to: - Add error handling around the property access, - Skip Content Center parts, - Ensure proper file replacement with clear naming.. ✅ REVISED iLogic Code (Error-handling + Content Center Safe) [code excerpt omitted]. Let me know if you want this to also rename the browser node in the assembly tree or save a log of old → new file names. EXTRACTED KNOWLEDGE / HOW-TO - Search all parts in an assembly. - Identify parts with the same Part Number (to detect duplicates). - Replace those with a new single instance of the renamed part. - Rename all unique parts to follow this format: `25-0217-001`, `25-0217-002`, etc. - -- - Backup your assembly first. This modifies file names and performs replacements. - This script assumes: - You're working in an assembly file. CONVERSATION SHAPE: 2 user turns / 2 assistant turns ATTACHMENTS DETECTED: 2 Raw transcripts, private details, exact locations, account information, employer/customer-confidential material, and restricted software references are not published in this note. PROPERTY OF U225X / PUBLIC-SAFE IMPORT