<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
               xmlns:atom="http://www.w3.org/2005/Atom"
               xmlns:dc="http://purl.org/dc/elements/1.1/"
               xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
               xmlns:admin="http://webns.net/mvcb/"
               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
               xmlns:content="http://purl.org/rss/1.0/modules/content/">
            <channel>
                <title>
					                		G-Code output file name format to include Used Filament in meters &amp; grams - PrusaSlicer                                    </title>
                <link>https://forum.prusa3d.com/forum/prusaslicer/g-code-output-file-name-format-to-include-used-filament-in-meters-grams/</link>
                <description>Prusa3D Forum Discussion Board</description>
                <language>en-US</language>
                <lastBuildDate>Wed, 17 Jun 2026 22:20:27 +0000</lastBuildDate>
                <generator>wpForo</generator>
                <ttl>60</ttl>
                					                    <item>
                        <title>RE:</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/g-code-output-file-name-format-to-include-used-filament-in-meters-grams/#post-786075</link>
                        <pubDate>Tue, 17 Mar 2026 00:25:31 +0000</pubDate>
                        <description><![CDATA[In case you&#039;re still looking, it&#039;s possible to include a rounded mass of filament with
{int(total_weight*10) / 10.0}g]]></description>
                        <content:encoded><![CDATA[<p>In case you're still looking, it's possible to include a rounded mass of filament with</p>
<pre contenteditable="false">{int(total_weight*10) / 10.0}g</pre>
<p>https://github.com/prusa3d/PrusaSlicer/issues/3472</p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>Green Joe</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/g-code-output-file-name-format-to-include-used-filament-in-meters-grams/#post-786075</guid>
                    </item>
                                        <item>
                        <title>RE: G-Code output file name format to include Used Filament in meters &amp; grams</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/g-code-output-file-name-format-to-include-used-filament-in-meters-grams/#post-724893</link>
                        <pubDate>Sun, 20 Oct 2024 03:54:17 +0000</pubDate>
                        <description><![CDATA[Thanks @neophyl.  I guess I had found the &quot;used_filament&quot; placeholder in the list you referenced above.  It was not clear from that documentation however what units are output.  It turns out...]]></description>
                        <content:encoded><![CDATA[<p>Thanks @neophyl.  I guess I had found the "used_filament" placeholder in the list you referenced above.  It was not clear from that documentation however what units are output.  It turns out to be length in meters as the default. </p><p>I couldn't figure out if there was a way to specify another unit with placeholder indexing or not, so I decided to get creative with mass.  It is a relatively easy matter to calculate used filament mass in grams as (length) x (area) x (mass density).  We already have (length) = "used_filament" in meters.  We can calculate (area) as (Pi/4) x "filament_diameter" in mm_squared.  .  That leaves (mass density) = "filament_density" in gram/cm_cubed.  It turns out that 1 cm_cubed = 1000 mm_cubed so the final units are correctly output in grams.</p><p>It is very important to enter the correct parameters for the filament being used in the Prusa software under "Filaments/Filament/Diameter and Filaments/Filament/Density".  The filename values should then match those listed under sliced info. </p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>Jb9</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/g-code-output-file-name-format-to-include-used-filament-in-meters-grams/#post-724893</guid>
                    </item>
                                        <item>
                        <title>RE: G-Code output file name format to include Used Filament in meters &amp; grams</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/g-code-output-file-name-format-to-include-used-filament-in-meters-grams/#post-724789</link>
                        <pubDate>Fri, 18 Oct 2024 22:06:50 +0000</pubDate>
                        <description><![CDATA[Output format placeholders are listed on the knowledge base heremacro&#039;s for adjusting them such as decimal places etc are listed herealso the old ways that predate the newer added functions ...]]></description>
                        <content:encoded><![CDATA[<p>Output format placeholders are listed on the knowledge base here https://help.prusa3d.com/article/list-of-placeholders_205643#output-filename-format-fdm</p><p>and macro's for adjusting them such as decimal places etc are listed here https://help.prusa3d.com/article/macros_1775</p><p>Theres also the old ways that predate the newer added functions such as digits or round etc which you can read about in a previous thread in this forum https://forum.prusa3d.com/forum/prusaslicer/howto-round-file-output-name-placeholder-total_cost/  </p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>Neophyl</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/g-code-output-file-name-format-to-include-used-filament-in-meters-grams/#post-724789</guid>
                    </item>
                                        <item>
                        <title>G-Code output file name format to include Used Filament in meters &amp; grams</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/g-code-output-file-name-format-to-include-used-filament-in-meters-grams/#post-724777</link>
                        <pubDate>Fri, 18 Oct 2024 19:32:56 +0000</pubDate>
                        <description><![CDATA[Sorry if this information already exists elsewhere, but I couldn&#039;t find it in any online forums...The following script entered in &quot;Print Settings/Output options/Output Format Filename&quot; will ...]]></description>
                        <content:encoded><![CDATA[<p>Sorry if this information already exists elsewhere, but I couldn't find it in any online forums...</p><p>The following script entered in "Print Settings/Output options/Output Format Filename" will add the amount of Used Filament in both meters (m) and grams (g) to the G-Code Output Filename:</p><p>{input_filename_base}_{print_time}_{digits(used_filament,1,2)}m_{digits(used_filament*3.1415626*filament_diameter*filament_diameter/4*filament_density,1,2)}g_{digits(layer_height,1,2)}mm_{temperature}C_{filament_type}_{printer_model}.gcode</p><p>(Note: Results verified for PrusaSlicer Version: 2.8.1+win64)</p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>Jb9</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/g-code-output-file-name-format-to-include-used-filament-in-meters-grams/#post-724777</guid>
                    </item>
                                                </channel>
        </rss>
        