ASCII stl selection when exporting

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
CharlieMAC
Posts: 228
Joined: Fri Apr 25, 2014 1:59 am

ASCII stl selection when exporting

Post by CharlieMAC »

Hi guys!

I had a bad time trying to export the freecad's parts into STL that were compatible with some utility programs for Matlab/Simulink. Matlab can actually handle STL in binary format, but no these useful programs. So, after hours trying with the classic File->Export, I found out that the Mesh workbench had the tool to export the parts into ASCII STL, but it actually took me take quite a long time to find this tool.

So, it would be useful that the file selection dialog (file-> export) had a checkbox to switch from binary STL to ASCII STL. That's all.

Best regards,

Charlie
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: ASCII stl selection when exporting

Post by NormandC »

Hello Charlie,

Seems like a reasonable request to me, if others agree with me, you could create a feature request on the bug tracker. Otherwise I'm afraid your request may be quickly forgotten.

I've been thinking an Export/Import page on the wiki listing all the possible options may be a good idea...

Cheers,

Norm
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: ASCII stl selection when exporting

Post by bejant »

Feature requested as issue #1586.
User avatar
virengos
Posts: 8
Joined: Fri Oct 14, 2016 9:56 am
Location: Germany
Contact:

Re: ASCII stl selection when exporting

Post by virengos »

Hi,
(1)
I don't really now if this the best practice, but it works for me:

At daily work with FreeCAD, working on preprocessing for CFD tasks a lot of different files are being exported, all the files needs to be in ASCII format in order to be editable later.
At first I export the files as AST (.ast) format and change the file extension in my file explorer to STL (.stl) format (Windows Explorer, Dolphin on Linux, whatever), this works fine for me ! For a large bunch of files I also use a Visual Basic Macro to change the extensions or a Python script to modify the region names inside the files (needed for my CFD meshing workflow).

(2)
One additional question / feature request:
When using the 'Mesh Design' module It would be very helpful to have an additional text field to define the region name inside the AST / STL file. See also attached screenshots.

What is your opinion ?

system info:
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6706 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: f86a4e411ff7848dea98d7242f43b7774bee8fa0
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Attachments
stl file // region name
stl file // region name
2016-10-18_11h16_52.png (22.2 KiB) Viewed 4608 times
meshing module // additional text field
meshing module // additional text field
2016-10-18_11h09_39.png (102.09 KiB) Viewed 4608 times
wmayer
Founder
Posts: 20307
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: ASCII stl selection when exporting

Post by wmayer »

Since v0.17 for the export to an obj file the label of the mesh in the tree view is used. This could also be done for the export to ASCII STL.
Post Reply