GithubHelp home page GithubHelp logo

dawarazhar11 / chatgpt-solidworks-sketch-automation-voice-enabled Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 79 KB

Initial setup of the project for automating sketch creation in SOLIDWORKS using ChatGPT API and speech recognition. Includes project structure, necessary files, and README with installation and usage instructions.

License: MIT License

Python 100.00%

chatgpt-solidworks-sketch-automation-voice-enabled's Introduction

SolidWorks Sketch Automation using OpenAI and PySldWrap

This project demonstrates how to use OpenAI's GPT-3 API and PySldWrap to automate sketch creation in SolidWorks. The program listens to user commands through the microphone, generates text prompts using OpenAI, and creates a sketch based on the user's input using PySldWrap.

Prerequisites

  • SolidWorks 2021
  • Python 3.8 or above
  • OpenAI API Key
  • PySldWrap

Installation

  1. Clone this repository to your local machine.
  2. Install the required packages using pip install -r requirements.txt.
  3. Set up an OpenAI account and get an API key.
  4. Update the config.ini file with your OpenAI API key.
  5. Add the path to your local PySldWrap directory in the PYTHONPATH environment variable.

Usage

  1. Open SolidWorks before running the program.
  2. Run the program using python solidworks_sketch.py.
  3. The program will listen to your command through the microphone.
  4. Once the program recognizes a valid command, it will generate a text prompt using OpenAI's GPT-3 API.
  5. Based on your input, the program will create a sketch using PySldWrap in SolidWorks.
  6. Follow the instructions displayed on the console to complete the sketch.
  7. Once the sketch is complete, it will be saved to the location specified by the user.

Supported Commands

  • Draw a rectangle
  • Draw a circle

License

This project is licensed under the MIT License. See LICENSE for more information.

chatgpt-solidworks-sketch-automation-voice-enabled's People

Contributors

dawarazhar11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.