CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSA (https://www.cfd-online.com/Forums/ansa/)
-   -   ANSA export (https://www.cfd-online.com/Forums/ansa/226654-ansa-export.html)

rowz May 4, 2020 03:57

ANSA export
 
hi everyone,


I am trying to export from ANSA several stl files at once but I can't :(:confused:.

Any ideas?

Regards,

rowz.

rmaries May 5, 2020 04:57

You can find the help for outputstl function below

You can make mode=visible to export only visible elements.
You need to iterate with the faces/pids to export separate stl files.

Code:

SYNOPSIS:
ansa.base.OutputStereoLithography(filename, mode, format, output_colors, output_exponent, unit_system, scale)  Named Arguments

DESCRIPTION:
Outputs a stereolithography file.
Arguments

filename        string                The name of the output file. It must include the full path.
mode            string    (optional)  "all" or "model" or "visible".
format          string    (optional)  "ascii" or "binary".
output_colors    string    (optional)  "on" or "off". Specifies whether to output property colors.
output_exponent  string    (optional)  "on" or "off". Specifies whether to output in exponent format.
unit_system      object    (optional)  A UnitSystem object. Dictates the length unit to which the output
                                      will be scaled from the existing ANSA length unit setting.
                                      If left blank, no scaling occurs.
scale            float    (optional)  A float number for scaling the mesh (scale factor).
                                      If both scale and unit_system arguments are defined,
                                      the later will override the first.



All times are GMT -4. The time now is 19:41.