Skip to content

Utility for the removal of extraneous clo3D generated dxf file data. Rendering simplified cut files by isolating lthe largest (seam allowance) POLYLINE vertext array for each block.

Notifications You must be signed in to change notification settings

rbuttress/clo2dxf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DXF Viewer and Filter

This project is a utility for filtering and visualizing DXF files, specifically designed to work with Clo3D output files. It removes unnecessary elements (e.g., baselines, text) and retains only the cutting lines, simplifying the DXF file for further use.


Features

  • Filter DXF Files: Eliminates baselines, text, and other non-essential elements, leaving only the cutting lines.
  • Visualize DXF Files: Displays the filtered DXF file in a canvas for easy inspection.
  • Save Filtered Files: Exports the filtered DXF file with a single polyline for each pattern block.

Basic Usage

1. Install Dependencies:

npm install

2. Prepare DXF Files:

Place your Clo3D output DXF files in the _dxf/ folder.

3. Start the Server:

npm start

4. Access the Application:

Open your browser and navigate to http://localhost:3000.

5. Filter and Visualize:

  • Select a DXF file from the sidebar.
  • The application will filter out baselines, text, and other non-essential elements, leaving only the cutting lines.

6. Save the Filtered File:

  • Click the Save Filtered DXF button.
  • The file system's save dialog will open, allowing you to name and save the filtered DXF file.

Project Structure

dxf-viewer/

  • │── _dxf/ ---Folder for input DXF files
  • │── public/ ---Frontend files (HTML, CSS, JS)
  • │ ├── index.html
  • │ ├── styles.css
  • │ └── script.js
  • │── index.js ---Backend server
  • │── package.json ---Project dependencies
  • │── README.md ---Project documentation

Requirements

  • Node.js (v14 or higher)
  • npm (v6 or higher)

Installation

1. Clone the Repository:

git clone https://github.com/your-username/your-repo-name.git

2. Navigate to the Project Directory:

cd your-repo-name

3. Install Dependencies:

npm install


Saving Filtered Files

  • After filtering a DXF file, click the Save Filtered DXF button.
  • The file system's save dialog will open, allowing you to name and save the filtered DXF file.

Contributing

Contributions are welcome! If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Commit your changes.
  4. Submit a pull request.

License

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


Acknowledgments

  • Special thanks to the creators of dxf-parser and dxf-writer for their libraries.
  • Inspired by the need to simplify Clo3D output DXF files for cutting patterns.

Contact

For questions or feedback, please open an issue on GitHub or contact rbuttress at rosebuttress@gmail.com.

About

Utility for the removal of extraneous clo3D generated dxf file data. Rendering simplified cut files by isolating lthe largest (seam allowance) POLYLINE vertext array for each block.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published