doc:user:geometry:import:stp2e
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
doc:user:geometry:import:stp2e [2013/07/12 14:56] – created joris | doc:user:geometry:import:stp2e [2015/01/08 10:39] – boman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Introduction | + | ====== Reading STEP files ====== |
+ | 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> | ||
- | Afin de pouvoir traiter des géométries complexes dans Metafor, un programme a été créé afin de transformer des fichiers STEP (extension | + | Here is an example |
+ | import toolbox.stp2py | ||
+ | thedir = os.path.dirname(os.path.abspath(__file__)) | ||
+ | mod = toolbox.stp2py.stp2py(os.path.join(thedir, | ||
+ | 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.txt · Last modified: 2016/03/30 15:23 by 127.0.0.1