<?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/">
  <channel>
    <title>Forem: mycodes21</title>
    <description>The latest articles on Forem by mycodes21 (@mycodes21).</description>
    <link>https://forem.com/mycodes21</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F732412%2Fbed338af-4385-413a-b988-ab4d9290523d.png</url>
      <title>Forem: mycodes21</title>
      <link>https://forem.com/mycodes21</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mycodes21"/>
    <language>en</language>
    <item>
      <title>Mechanical Engineering + Python: A Great Combination for Simple Tasks (Showcasing PyNCViewer)</title>
      <dc:creator>mycodes21</dc:creator>
      <pubDate>Sat, 20 Dec 2025 20:29:01 +0000</pubDate>
      <link>https://forem.com/mycodes21/mechanical-engineering-python-a-great-combination-for-simple-tasks-showcasing-pyncviewer-1ib5</link>
      <guid>https://forem.com/mycodes21/mechanical-engineering-python-a-great-combination-for-simple-tasks-showcasing-pyncviewer-1ib5</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkamaerd3fsjph84hfklo.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkamaerd3fsjph84hfklo.jpg" alt=" " width="800" height="501"&gt;&lt;/a&gt;&lt;br&gt;
Hello everyone! 👋&lt;/p&gt;

&lt;p&gt;I am a Mechanical Engineer based in Serbia, passionate about bridging the gap between hardware (CNC machines) and software.&lt;/p&gt;

&lt;p&gt;Often, engineers are stuck using heavy, expensive, and bloated industrial software just to check a simple G-code file or visualize a toolpath. I wanted something faster, lighter, and modern. So, I decided to build it myself using Python.&lt;/p&gt;

&lt;p&gt;I present to you PyNCViewer.&lt;/p&gt;

&lt;p&gt;What is PyNCViewer?&lt;br&gt;
It is a modern, open-source G-Code Viewer and Simulator for CNC machines. I designed it for engineers, machinists, and hobbyists who need a fast tool to visualize, analyze, and edit G-Code without waiting for a heavy CAD/CAM suite to load.&lt;/p&gt;

&lt;p&gt;Key Features 🛠️&lt;br&gt;
Here is what it can do right now:&lt;/p&gt;

&lt;p&gt;Real-time Visualization: Full 3D OpenGL rendering with Pan/Zoom/Rotate capabilities.&lt;/p&gt;

&lt;p&gt;Animation Mode: You can "play" the machining process with an adjustable speed slider to see exactly how the tool moves.&lt;/p&gt;

&lt;p&gt;Smart Scan: It automatically detects potential crashes (Rapid G0 into material), missing feed rates, and syntax errors.&lt;/p&gt;

&lt;p&gt;Tool Library: Support for multiple tools (T1, T2...) with custom diameters.&lt;/p&gt;

&lt;p&gt;DXF Export: A unique feature that allows you to reverse engineer G-Code back into DXF drawings.&lt;/p&gt;

&lt;p&gt;Advanced Editor: Includes syntax highlighting, renumbering lines, and removing line numbers.&lt;/p&gt;

&lt;p&gt;Transformations: Mirror, Scale, Shift, and Axis Swap your G-code instantly.&lt;/p&gt;

&lt;p&gt;DRO Panel: Digital Readout of coordinates during simulation.&lt;/p&gt;

&lt;p&gt;The Tech Stack 💻&lt;br&gt;
For those interested in the code, I built this using:&lt;/p&gt;

&lt;p&gt;Python 3&lt;/p&gt;

&lt;p&gt;CustomTkinter (for the modern dark-mode UI)&lt;/p&gt;

&lt;p&gt;NumPy (for coordinate calculations)&lt;/p&gt;

&lt;p&gt;OpenGL (for rendering)&lt;/p&gt;

&lt;p&gt;Why Open Source?&lt;br&gt;
I believe engineering tools should be accessible. Whether you are a student, a hobbyist with a 3D printer, or a professional machinist, you shouldn't have to pay a subscription just to view a G-code file.&lt;/p&gt;

&lt;p&gt;Try it out! 🚀&lt;br&gt;
The project is fully open-source on GitHub. I would love to hear your feedback, bug reports, or feature requests!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mycodes21/PyNC_Viewer" rel="noopener noreferrer"&gt;https://github.com/mycodes21/PyNC_Viewer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(Feel free to Star the repo if you find it useful! ⭐)&lt;/p&gt;

</description>
      <category>programming</category>
      <category>ai</category>
      <category>productivity</category>
      <category>python</category>
    </item>
  </channel>
</rss>
