doc:user:geometry:import:stp2e
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
doc:user:geometry:import:stp2e [2013/07/12 14:56] – created joris | doc:user:geometry:import:stp2e [2016/03/30 15:23] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Introduction | + | ====== |
+ | {{: | ||
+ | It is possible to import STEP files generated by external CAD software such as Catia or FreeCAD. The function used to convert STEP files to python commands that are understandable by Metafor is defined in the '' | ||
+ | <note important> | ||
+ | Here is an example (from '' | ||
- | Afin de pouvoir traiter des géométries complexes dans Metafor, un programme a été créé afin de transformer des fichiers STEP (extension '' | + | import toolbox.stp2py |
+ | thedir = os.path.dirname(os.path.abspath(__file__)) | ||
+ | mod = toolbox.stp2py.stp2py(os.path.join(thedir, 'cont2.stp')) | ||
+ | mod.fillImportedStp(domain) | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ===== Utilisation ===== | ||
- | |||
- | |||
- | //Pour la compilation du programme voir [[commit: | ||
- | |||
- | Pour lancer la moulinette et transformer le fichier STEP en fichier '' | ||
- | |||
- | < | ||
- | |||
- | Si tout se passe bien un résumé s' | ||
- | |||
- | < | ||
- | import apps.rep.fichstp | ||
- | apps.rep.fichstp.fillImportedStp(domain, | ||
- | </ |
doc/user/geometry/import/stp2e.1373633797.txt.gz · Last modified: 2016/03/30 15:22 (external edit)