# Export CAD files from Flair

**URL:** <https://fluka-forum.web.cern.ch/t/export-cad-files-from-flair/8535>\
**Category:** Flair\
**Created:** [31 July 2026 04:10 UTC](https://fluka-forum.web.cern.ch/t/export-cad-files-from-flair/8535 "2026-07-31T04:10:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cuiyaoxuan](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@cuiyaoxuan](https://fluka-forum.web.cern.ch/u/cuiyaoxuan)\
**Post date:** [31 July 2026 04:10 UTC](https://fluka-forum.web.cern.ch/t/export-cad-files-from-flair/8535/1 "2026-07-31T04:10:30Z")

</div>

Dear FLUKA expert,  
I would like to export the geometric modeling in Flair to a CAD-readable format. I tried to select export to OpenSCAD in the input options. But when this file is opened in CAD, it only has the outermost geometric structure and no internal geometric structure. What should I do?

---

<div class="post-metadata">

**Author:** ![vasilis](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/vasilis/32/16_2.png) [@vasilis](https://fluka-forum.web.cern.ch/u/vasilis)\
**Post date:** [18 August 2026 07:45 UTC](https://fluka-forum.web.cern.ch/t/export-cad-files-from-flair/8535/3 "2026-08-18T07:45:45Z")

</div>

Hi @cuiyaoxuan

there is direct exporting to CAD readable files. One option is to install the [development / beta-testing](https://flair.cern/download.html#beta) version of flair which has OpenGL capabilities.

- Open your input in flair
- Go to the geoviewer tab
- Select in one viewport the **OpenGL** layer
- Click on the **Export** button on the ribbon or Ctrl-P
- Select the OpenGL viewport
- Select **Mesh** as datatype
- Fill in the filename
- Click **Export**

it should create a tesselated mesh file that can be read by most CAD software

---

<div class="post-metadata">

**Author:** ![cuiyaoxuan](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@cuiyaoxuan](https://fluka-forum.web.cern.ch/u/cuiyaoxuan)\
**Post date:** [19 August 2026 06:45 UTC](https://fluka-forum.web.cern.ch/t/export-cad-files-from-flair/8535/4 "2026-08-19T06:45:14Z")

</div>

Dear Vlachoudis, thank you very much for your reply. I used your method to export Mesh files, which display with the export suffix .obj. But after confirming the export, an error message appears: Error exporting to foemat/filetype ‘obj’. How should I handle this? Is it because my Flair is missing relevant components or for some reason?

---

<div class="post-metadata">

**Author:** ![cuiyaoxuan](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@cuiyaoxuan](https://fluka-forum.web.cern.ch/u/cuiyaoxuan)\
**Post date:** [19 August 2026 07:43 UTC](https://fluka-forum.web.cern.ch/t/export-cad-files-from-flair/8535/5 "2026-08-19T07:43:38Z")

</div>

Hello, sir. I think I have already solved this problem. Thank you for being so helpful.

---

<div class="post-metadata">

**Author:** ![cimmino](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/c/57b2e6/32.png) [@cimmino](https://fluka-forum.web.cern.ch/u/cimmino)\
**Post date:** [19 August 2026 08:00 UTC](https://fluka-forum.web.cern.ch/t/export-cad-files-from-flair/8535/6 "2026-08-19T08:00:50Z")

</div>


