Skip to main content
5-Regular Member
April 24, 2026
Solved

How to batch rename all parts in an assembly with sequential serial numbers? (Creo Elements/Direct Modeling)

  • April 24, 2026
  • 2 replies
  • 60 views

Software: Creo Elements/Direct Modeling 19.0

Goal: I am looking for a way to automatically rename all components (parts and assemblies) within a specific top-level assembly using a sequential naming convention (e.g., PART-001, PART-002, PART-003...).

Details: Doing this manually in the Structure Browser is extremely time-consuming for large assemblies. I would like to find a solution (either a built-in command or a LISP script) that allows me to:

  1. Select a Parent Assembly.

  2. Define a Prefix (e.g., "MYSYSTEM-").

  3. Automatically apply a three-digit increment (001, 002...) to all children.

Questions:

  • Is there a hidden command in the standard UI that supports "Prefix + Increment" renaming?

  • If not, does anyone have a LISP macro or utility that can automate this task?

  • Are there any "Best Practices" to avoid naming conflicts when doing this in a large session?

Any help, sample code, or advice would be greatly appreciated. Thank you!

Best answer by ZL_14569442

Solved: Developed a custom LISP tool to batch rename parts.

I have solved this by writing a custom LISP utility. The script allows the user to select an assembly, define a prefix and a starting number, then automatically assigns sequential serial numbers to all direct parts within that assembly.

Key Logic:

  • Uses sd-defdialog for a user-friendly interface.

  • Utilizes sd-inq-obj-children to identify child objects.

  • Filters for parts using sd-inq-part-p to ensure only parts are renamed, leaving the assembly name intact.

2 replies

ZL_145694425-Regular MemberAuthorAnswer
5-Regular Member
April 27, 2026

Solved: Developed a custom LISP tool to batch rename parts.

I have solved this by writing a custom LISP utility. The script allows the user to select an assembly, define a prefix and a starting number, then automatically assigns sequential serial numbers to all direct parts within that assembly.

Key Logic:

  • Uses sd-defdialog for a user-friendly interface.

  • Utilizes sd-inq-obj-children to identify child objects.

  • Filters for parts using sd-inq-part-p to ensure only parts are renamed, leaving the assembly name intact.

5-Regular Member
April 27, 2026

Solved: Developed a custom LISP tool to batch rename parts.

I have solved this by writing a custom LISP utility. The script allows the user to select an assembly, define a prefix and a starting number, then automatically assigns sequential serial numbers to all direct parts within that assembly.

Key Logic:

  • Uses sd-defdialog for a user-friendly interface.

  • Utilizes sd-inq-obj-children to identify child objects.

  • Filters for parts using sd-inq-part-p to ensure only parts are renamed, leaving the assembly name intact.