./features/convert BREP to STEP
Download Features Source code Forum Ask for support

Convert BREP to STEP

The following code visits all BREP files in a directory and converts them to STEP:

set workdir   MyWorkDir
set targetdir MyTargetDir

# Get all BREP files available in the input directory.
set filenames [glob -directory $workdir -- "*.brep"]

notifier -init

foreach inFilename $filenames {
  puts "Next file: $inFilename"
  set basename [lindex [file split $inFilename] end]
  set basename [file rootname $basename]

  puts "Target output file: $targetdir/$basename.stp"
  load-brep $inFilename
  save-step "$targetdir/$basename.stp"

  notifier -step
}

notifier -finish