Introducing the Built-in DXF Viewer

Introducing the Built-in DXF Viewer

August 2026
CNC Hub Team
5 min read

Now Open DXF Files Directly on Your Phone! 📐

We heard your feedback! One of the biggest challenges for CNC designers on the go is previewing .dxf files without turning on a computer or opening heavy desktop software like AutoCAD or ArtCAM.

Today, we are thrilled to announce our revolutionary Built-in DXF Viewer, developed entirely in-house for the CNC Hub App!

How Does It Work Under the Hood?

Instead of relying on slow, third-party server rendering, we built an incredibly fast native-like viewing experience. Here is the magic behind it:

  1. Client-Side Parsing: When you tap a design in the app, the raw DXF file is loaded and passed directly to a highly optimized HTML5 Canvas engine via Android's WebView interface.
  2. DxfParser Engine: A custom JavaScript parsing engine reads the complex vector geometry (Lines, Polylines, Circles, etc.) and translates them into rendering coordinates in milliseconds.
  3. Hardware Accelerated Drawing: We use native 2D Canvas rendering (ctx.stroke) to draw the blueprint. By default, the vectors are drawn in a high-contrast red color on a white canvas for maximum clarity.

Features of the New DXF Viewer:

  • Instant Auto-Fit: As soon as the DXF loads, our autoFit() algorithm calculates the bounding box of the entire design and perfectly centers it on your mobile screen at a 90% scale. No more endless scrolling to find your drawing!
  • Touch Optimization: Fully supports smooth Pinch-to-Zoom and drag-to-pan using multi-touch gestures. It feels just like zooming into a photo on your gallery.
  • Precision Measurement Mode: We didn't just stop at viewing. We added an advanced Measurement Tool! When toggled, you can tap anywhere on the screen, and our intelligent findNearestSnapPoint() algorithm will automatically snap to the nearest vector point. Tap two points, and it will instantly calculate the exact distance in millimeters (mm)!

Where Can You Use the DXF Viewer?

We didn't just build this viewer—we integrated it deeply into every corner of the CNC Hub ecosystem so you can access it whenever you need it:

  • Inspect Your Files: Found a design you like on the home feed or while browsing a designer's profile? Once you get the file, you can instantly open and inspect the DXF right inside the app before sending it to your CNC machine.
  • Mega Hub & Main Menu: Have your own DXF file saved on your phone? You can open the standalone DXF Viewer directly from the Main Menu (Bottom Sheet) or the Mega Hub to inspect any local file!
  • Design Competitions: When voting or checking out entries in our design competitions, you can precisely inspect the vector geometry of the submitted entries.
  • Admin Moderation: To ensure the highest quality of designs on CNC Hub, our Admin team has special privileges to use this viewer to review and approve pending posts seamlessly without needing to download the files first.
  • Auto-Thumbnail Generation (During Upload): When you upload a new DXF file, you don't even need to provide a separate preview image! Our system uses the DXF Viewer in the background to automatically render and capture a high-quality image of your design to use as the post thumbnail.

With this powerful new update, your smartphone is now a complete pocket CNC workspace. Update your CNC Hub app from the Google Play Store today and experience the magic!