Hello everyone,
I just registered because we have a recurring task and I hope that maybe some smart coder of the english speaking Alibre community can help us automise it.
Name: "Rename and save an assembly after step import" script
What it does: The user imports an assembly from a step file and the script automatically renames and saves all contained parts and sub-assemblies in ascending number sequence
Procedure and Things to Consider:
1. User imports step file for the first time
2. User launches script in Alibre script
3. Script renames the main assembly to "1000" (the starting number can be adjusted manually in the script code, e.g. 2000, 50000,..).
4. Script renames all sub-assemblies and parts in ascending order (1001, 1002,...,1762)
(No special order of renaming is required)
5. Script saves the renamed assembly and all its parts to a specified folder (whose path can be manually adjusted in the script code).
Is there any way someone could write such a script? - Or has it already been released and I missed it in my research?
This would be a great help for our small company, as we often receive complex CATIA assemblies as step files from customers, whose individual file names are too long for Windows (in combination with our file path) and require manual renaming in the "Save As" menu.
So we waste a lot of time on a repetitive, unproductive and unpleasant task, before we can actually start a project.
Picture of the manual "Save As Procedure" attached.
Greetings from Germany.
Finish
I just registered because we have a recurring task and I hope that maybe some smart coder of the english speaking Alibre community can help us automise it.
Name: "Rename and save an assembly after step import" script
What it does: The user imports an assembly from a step file and the script automatically renames and saves all contained parts and sub-assemblies in ascending number sequence
Procedure and Things to Consider:
1. User imports step file for the first time
2. User launches script in Alibre script
3. Script renames the main assembly to "1000" (the starting number can be adjusted manually in the script code, e.g. 2000, 50000,..).
4. Script renames all sub-assemblies and parts in ascending order (1001, 1002,...,1762)
(No special order of renaming is required)
5. Script saves the renamed assembly and all its parts to a specified folder (whose path can be manually adjusted in the script code).
Is there any way someone could write such a script? - Or has it already been released and I missed it in my research?
This would be a great help for our small company, as we often receive complex CATIA assemblies as step files from customers, whose individual file names are too long for Windows (in combination with our file path) and require manual renaming in the "Save As" menu.
So we waste a lot of time on a repetitive, unproductive and unpleasant task, before we can actually start a project.
Picture of the manual "Save As Procedure" attached.
Greetings from Germany.
Finish