Airfoil (.dat) file importer.
This module provides support for importing airfoil .dat files
def importAirfoilDAT.insert |
( |
|
filename, |
|
|
|
docname |
|
) |
| |
Get an active document and parse.
If no document exists, it is created.
Parameters
----------
filename : str
The path to the filename to be opened.
docname : str
The name of the active App::Document if one exists, or
of the new one created.
Returns
-------
App::Document
The active FreeCAD document, or the document created if none exists,
with the parsed information.
References decodeName(), and process().
def importAirfoilDAT.process |
( |
|
doc, |
|
|
|
filename |
|
) |
| |
Process the filename and provide the document with the information.
The common airfoil dat format has many flavors.
This code should work with almost every dialect.
Parameters
----------
filename : str
The path to the filename to be opened.
docname : str
The name of the active App::Document if one exists, or
of the new one created.
Returns
-------
App::Document
The active FreeCAD document, or the document created if none exists,
with the parsed information.
References pythonopen.
Referenced by insert(), and open().