STEP-G(1)

πŸ“¦ version 7.44.0, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€ β€” STEP-G(1), bestie!

step-g β€” convert a STEP (ISO 10303 AP203) file to a BRL-CAD geometry database. πŸ’…

Okay so this is the STEP-G(1) manual page, and it's literally giving β€œSTEP file goes in, BRL-CAD database comes out.” πŸ¦‹


✨ SYNOPSIS ✨

step-g [-v] [-D] [-S _summary_file_] (-o _outfile.g_ | -O _outfile.g_) _infile.stp_

πŸ’– DESCRIPTION πŸ’–

step-g reads an ISO 10303 STEP (Standard for the Exchange of Product model data) file β€” typically an AP203 .stp or .step file, iykyk β€” and translates its boundary representation (B-rep) geometry and assembly hierarchy into a BRL-CAD .g database. 🫢

The translation maps STEP manifold solids and bounded surfaces into BRL-CAD brep objects, and preserves the structure of assemblies and parts using BRL-CAD combinations. The assembly structure is lowkey the main character here. πŸ‘‘

As input, infile.stp may be a filename, or - to read the STEP data from standard input. πŸŒ€

An output file must be named with either -o or -O. Load and convert times along with a brief translation summary are written to standard error. ⏱️


πŸ’… OPTIONS πŸ’…

  • -o outfile.g β€” Name the BRL-CAD geometry database to create. If the file already exists, step-g refuses to overwrite it and exits with an error. 🚫
  • -O outfile.g β€” Name the BRL-CAD geometry database to create, forcibly overwriting the file if it already exists. πŸ’₯
  • -S summary_file β€” Write a detailed translation summary log to the named file. πŸ“
  • -v β€” Enable verbose diagnostic output to standard error during parsing and conversion. πŸ”Š
  • -D β€” Perform a dry run: load and parse the STEP file and exercise the conversion steps, but do not write the output .g database. Useful for validating a STEP file or timing the parsing phase. πŸ§ͺ

🌈 EXAMPLES 🌈

Example 1. Convert a STEP file and inspect the result

step-g -o widget.g widget.stp
mged widget.g 'tops'

Translates widget.stp into the new database widget.g (refusing to clobber an existing widget.g), then lists the top-level objects of the resulting database with mged(1) so the imported assembly tree can be examined. πŸ”βœ¨

Example 2. Validate a STEP file without writing output

step-g -v -D -o /dev/null suspect.step

Loads and parses suspect.step with verbose diagnostics enabled to check the file's integrity and time the parse, while the -D dry run suppresses writing any geometry. πŸ•΅οΈβ™€οΈπŸ’€


πŸ‘€ SEE ALSO πŸ‘€

brlcad(1), g-step(1), mged(1) 🫢


🧚 AUTHOR 🧚

BRL-CAD Team πŸ’œ


This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory. πŸ‘‘


πŸ› BUG REPORTS πŸ›

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org πŸ“§


Source/version: BRL-CAD Β· manual: STEP-G(1) Β· date: not shown in the source footer, bestie β€” no fake date from me. πŸ’–

πŸ“¦ where this page comes from