Skip to content

A Rust-based desktop application for calculating FDM 3D printing costs, supporting multi-currency and profit margin estimations.

License

Notifications You must be signed in to change notification settings

dmriding/fdm_cost_calculator

Repository files navigation

FDM Cost Calculator

The FDM Cost Calculator is a lightweight, user-friendly desktop application designed to calculate the cost of FDM (Fused Deposition Modeling) 3D prints. It provides a precise breakdown of costs based on filament usage, electricity, printer wear and tear, and shipping. Additionally, it supports customizable profit margins and currency switching, making it ideal for hobbyists and professionals alike.


Features

  • Comprehensive Cost Calculation:

    • Factor in filament cost, electricity rate, printer wattage, wear and tear, and shipping.
    • Supports up to 16 materials for multi-color/material prints.
  • Profit and Pricing Tools:

    • Automatically calculate suggested pricing with customizable profit margins (10%, 20%, 30%, 50%, 100%).
  • Dynamic and Intuitive UI:

    • Toggle between Single-Color Mode and Multi-Color/Material Mode.
    • Dynamic scrolling and three-column layout for multi-color/material inputs.
  • Currency Support:

    • Seamlessly switch between USD ($), EUR (€), and GBP (£).
  • Secure and Local-Only Data:

    • No data storage—your inputs remain local to your device.
    • Export functionality planned for future releases.

Installation

Prerequisites

Before using the FDM Cost Calculator, ensure you have the following installed:

  • Rust: Download and install the latest stable version of Rust from the official website.
  • Cargo: Included with Rust, Cargo is the package manager for this project.

Steps to Install and Run

  1. Clone the Repository:

    git clone https://github.com/dmriding/fdm_cost_calculator.git
    cd fdm_cost_calculator
  2. Build the Project: Use Cargo to download dependencies and compile the project:

    cargo build
  3. Run the Application: Launch the app with:

    cargo run

The FDM Cost Calculator GUI will open, ready for use.

Download the Latest Release

The latest version of the FDM Cost Calculator is available for download! 🎉

This link will always point to the most recent version, including precompiled binaries for supported platforms (if available).

How to Run the Binary

  1. Download the Binary:

    • Go to the Latest Release and download the appropriate binary for your operating system.
  2. Windows Users:
    After downloading the .exe file, you might see a security warning when trying to run it. To unblock the file:

    • Right-click on the .exe file.
    • Select Properties.
    • In the General tab, look for the message:
      "This file came from another computer and might be blocked to help protect this computer."
    • Check the box for Unblock and click OK.
    • You can now run the application by double-clicking the file.
  3. Linux/macOS Users:

    • Extract the binary (if compressed).
    • Open a terminal and navigate to the directory containing the binary.
    • Run the application with:
      ./fdm_cost_calculator

If you encounter any issues, please report them in the Issues section.


How to Use

Input Fields

  • Filament Details:
    • Specify cost per kilogram, brand, material, weight (grams), and carbon-based status (if applicable).
  • Electricity:
    • Enter your local electricity rate (e.g., EUR/kWh) and your printer’s wattage (W).
  • Print Time:
    • Provide the estimated time required for the print in hours.
  • Markup and Shipping:
    • Adjust the markup percentage for profit margins and include shipping costs.

Multi-Color/Material Support

  • Toggle between Single-Color Mode and Multi-Color Mode.
  • In Multi-Color Mode, add up to 16 materials with detailed individual cost inputs.

Currency Switching

Click the currency button to cycle through USD ($), EUR (€), and GBP (£). All costs will update to reflect the selected currency.

Calculation Results

Once all inputs are provided, click Calculate to compute:

  • Total Cost: Combines filament, electricity, wear and tear, and shipping costs.
  • Suggested Price: Calculates a selling price based on your chosen profit margin.
  • Wear and Tear Cost: Estimates the maintenance and depreciation costs of your printer during the print job.

Screenshots

Single-Color Mode

Single Color Mode

Multi-Color/Material Mode

Multi-Color Mode


Troubleshooting

Common Issues

  • Missing Dependencies:
    If you encounter errors related to missing dependencies, run:

    cargo build
  • Crashes or Bugs:
    Please report any issues in the repository’s Issues section.


Roadmap

Here are some of the planned features for future releases:

  1. Slicer Integration:
    • Import filament usage, print time, and costs directly from slicers like Cura, PrusaSlicer, or Bambu Studio.
  2. Advanced Filament Management:
    • Support for filament density and spool management.
  3. Export Functionality:
    • Export cost breakdowns to PDF or CSV for sharing or recordkeeping.
  4. Platform Fee and Tax Calculations:
    • Include fees for platforms like Etsy and Amazon, as well as sales tax rates.
  5. Optional Cloud Syncing:
    • Only if requested by users, with encryption and full user control.
  6. Open-Source Enhancements:
    • Allow the community to contribute features and improvements.

Feedback and Support

Your feedback is invaluable! If you encounter any bugs, have feature requests, or want to share general feedback, here’s how you can help:

  1. Report Bugs: Open an issue in the Issues section and use the provided bug report template.
  2. Request Features: Have an idea for improvement? Submit a feature request in the Issues section.
  3. General Feedback: Share your feedback in our Beta Testing Feedback thread.

Thank you for helping make FDM Cost Calculator better! 🚀


Contribution

Contributions are welcome! If you have ideas for improving the app:

  • Fork the repository.
  • Open a pull request with your changes.
  • Submit feature requests or bug reports in the Issues section.

For more details, check out the Contributing Guidelines.


License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A Rust-based desktop application for calculating FDM 3D printing costs, supporting multi-currency and profit margin estimations.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages