This is an old revision of the document!
Table of Contents
Import of a STEP geometry
Introduction
To handle complex geometries un Metafor, a software which can convert STEP files (extension .stp
) into Python format, readable by Metafor, (extension .py
) was created. This software is independent of Metafor. It reads the STEP file, and converts what it can. Therefore, to create a complex geoemtry it Metafor, it is easier to create it in Catia, export it in STEP format and then convert it.
Use
For the software compilation, see Commit 2006-10-09.
To convert from STEP to .py
, the executable stp2e.exe
must be run and the corresponding STEP file introduced, without the extension.
$ ./stp2e rep/fich
If all goes well, a summary is displayed and a .py
file is created. Here, the created file will be fichstp.py
(name of the file + stp.py
). All that remains to do is to import this file in Metafor:
import apps.rep.fichstp apps.rep.fichstp.fillImportedStp(domain, parameters)