STEP-G(1)
π 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 π
-ooutfile.gβ Name the BRL-CAD geometry database to create. If the file already exists,step-grefuses to overwrite it and exits with an error. π«-Ooutfile.gβ Name the BRL-CAD geometry database to create, forcibly overwriting the file if it already exists. π₯-Ssummary_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.gdatabase. 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 π
Β©οΈ COPYRIGHT Β©οΈ
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
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms