🛠️ AI-SolidWorks
🇮🇷 نسخه فارسی
SoliPy یک رابط هوشمند بین کاربر و نرمافزار SolidWorks است که امکان کنترل و ایجاد اشکال با استفاده از دستورات زبان طبیعی فارسی را فراهم میکند.
✨ ویژگیهای اصلی
- 🗣️ ارتباط با زبان طبیعی: ارسال دستورات طراحی با زبان فارسی ساده
- 🤖 پشتیبانی از هوش مصنوعی: استفاده از مدلهای پیشرفته هوش مصنوعی برای درک دستورات
- 📝 تبدیل خودکار به اسکریپت: تولید اسکریپتهای VBS برای SolidWorks
- 🎨 رابط کاربری آسان: محیط کاربری ساده و کاربرپسند با تم تاریک
🚀 نحوه استفاده
-
نصب و راهاندازی:
bash git clone https://github.com/your-username/solipy.git cd solipy pip install -r requirements.txt python sw_api_panel.py -
تنظیم API:
- کلید API خود را در فایل.envیا از طریق دکمه "تنظیمات API" وارد کنید
- امکان استفاده از سرویسهای OpenAI یا OpenRouter -
ارسال دستورات:
- مثال: "یک دایره بکش"
- مثال: "یک مستطیل به ضلع ۴۰ متر بکش"
- مثال: "یک خط بکش"
📂 ساختار فایلها
sw_api_panel.py: برنامه اصلی با رابط کاربری گرافیکیscripts/: پوشه حاوی اسکریپتهای VBS برای SolidWorksconnect_to_sw.vbs: اسکریپت اتصال به SolidWorksdraw_circle.vbs: اسکریپت نمونه برای رسم دایرهcreate_sketch.vbs: اسکریپت ایجاد اسکچ اصلیcreate_sketch_from_input.vbs: اسکریپت پارامتریک برای ایجاد اشکالcreate_extrude.vbs: اسکریپت برای اکسترود کردن اشکال
📋 نیازمندیها
- Python 3.8+
- SolidWorks (نصب شده روی سیستم)
- کلید API از OpenAI یا OpenRouter
- سیستم عامل: ویندوز
🇬🇧 English Version
SoliPy is an intelligent interface between users and SolidWorks software that enables control and shape creation using natural language commands in both Persian and English.
✨ Key Features
- 🗣️ Natural Language Communication: Send design commands using simple language
- 🤖 AI-Powered: Utilizes advanced AI models to understand commands
- 📝 Automatic Script Generation: Generates VBS scripts for SolidWorks
- 🎨 User-Friendly Interface: Simple and intuitive UI with dark theme
🚀 How to Use
-
Installation:
bash git clone https://github.com/your-username/solipy.git cd solipy pip install -r requirements.txt python sw_api_panel.py -
API Setup:
- Enter your API key in the.envfile or through the "API Settings" button
- Compatible with OpenAI or OpenRouter services -
Sending Commands:
- Example: "Draw a circle"
- Example: "Create a rectangle with 40 meters sides"
- Example: "Draw a line"
📂 File Structure
sw_api_panel.py: Main program with graphical user interfacescripts/: Folder containing VBS scripts for SolidWorksconnect_to_sw.vbs: Script for connecting to SolidWorksdraw_circle.vbs: Sample script for drawing a circlecreate_sketch.vbs: Script for creating main sketchcreate_sketch_from_input.vbs: Parametric script for creating shapescreate_extrude.vbs: Script for extruding shapes
📋 Requirements
- Python 3.8+
- SolidWorks (installed on the system)
- API key from OpenAI or OpenRouter
- Operating System: Windows
📸 Screenshots
Main application interface with SolidWorks integration
Command input and response flow
🔄 Workflow
- User Input: Enter a command in natural language
- AI Processing: The command is processed by AI to understand intent
- Script Generation: A VBS script is automatically generated
- Execution: The script is executed in SolidWorks
- Result: The requested operation is performed in SolidWorks
📜 License
This project is licensed under the MIT License - see the LICENSE file for details. "# SolidWorks-MCP-Server"
"# SolidWorks-MCP-Server"
