Convert SG Data#
sgio.convert() reads one format and writes another in a single call. The
sgio convert CLI command exposes the same operation.
import sgio
sgio.convert(
file_name_in='input.inp',
file_name_out='output.sg',
file_format_in='abaqus',
file_format_out='vabs',
model_type='BM2',
)
sgio convert input.inp output.sg -ff abaqus -tf vabs -m BM2
Python |
CLI |
Purpose |
|---|---|---|
|
|
source and target format |
|
|
format version, e.g. VABS |
|
|
structural model |
|
|
SG dimension, when the format does not imply it |
|
|
plane of a 2D section: |
|
|
|
|
|
convert geometry only |
Format identifiers and the conversion matrix are in Formats and Model Types; the full signature is in I/O Functions.
See Examples for worked conversions.