Metafor

ULiege - Aerospace & Mechanical Engineering

User Tools

Site Tools


doc:user:geometry:import:stp2e

This is an old revision of the document!


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)
doc/user/geometry/import/stp2e.1407670532.txt.gz · Last modified: 2016/03/30 15:22 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki