Skip to content

Navigation Menu

Sign in
Sign up

Save Child Parts To STEP

KaiUR edited this page Jun 3, 2026 · 5 revisions

Save Child Parts To STEP

File: Product_Document_Scripts/Save_Child_Parts_To_STEP.py
Version: 1.2
Document Type: CATProduct


Description

Exports all CATParts in an open CATProduct to individual STEP files. Files are saved to a subfolder named STEP_Export_ProductName alongside the product file. If the product has not been saved, files are exported to a subfolder in the user's Downloads folder.

Based on the pycatia user scripts example.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
wxPython Not required
Open document CATProduct with child parts

Usage

  1. Open a CATProduct document containing CATParts
  2. Run the script — no user input is required
  3. All CATParts are exported to STEP files automatically

Output

STEP files are saved to a folder alongside the product file:

ProductFolder\
 STEP_Export_MyProduct\
 Part1.stp
 Part2.stp
 Part3.stp

If the product has not been saved to disk yet, files go to:

C:\Users\YourName\Downloads\STEP_Export_MyProduct\

If STEP files with the same names already exist they will be overwritten.


Notes

  • The product is put into Design Mode before export to ensure all parts are fully loaded
  • All terminal nodes (leaf parts) in the product structure are activated before export
  • Only files ending in .CATPart in the current CATIA document collection are exported
  • The export folder is created automatically if it does not exist

Home


Getting Started


Contributing


Any Document Scripts


Drawing Document Scripts


Part Document Scripts


Shape Generation Scripts


Process Document Scripts


Product Document Scripts


Utility Scripts


Legal

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /