[Announcement] GPT4FreeCAD Plug-In

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: [Announcement] GPT4FreeCAD Plug-In

Post by thschrader »

revhappy wrote: Wed May 03, 2023 4:05 am This is something I have imagined for a while. Imagine natural language prompts to create a model.
...
Looking forward to your feedback and suggestions!
Sounds interesting.

Some questions from an old dog:
1. Is it possible to feed the AI (any AI?) with old pdf or hand drawings and get a CAD-model, or at least a 2D dwg-file?
We often get drafts from other engineers in pdf format, we must redraw the stuff manually in CAD.
2. Is it possible to run the AI on my local machine?
One of our customers is the governement, we are not allowed to share files on servers.

Regards Thomas

example: EDIT: deleted customer drawing due to request
old_hand_drawing.JPG
old_hand_drawing.JPG (19.92 KiB) Viewed 3458 times
Last edited by thschrader on Mon Jul 10, 2023 11:01 am, edited 1 time in total.
bleber
Posts: 259
Joined: Thu Jun 30, 2016 5:12 pm

Re: [Announcement] GPT4FreeCAD Plug-In

Post by bleber »

I think that there are AI open source that you can run locally, other thing is training the AI to make drawings from scanned images.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Announcement] GPT4FreeCAD Plug-In

Post by Kunda1 »

@revhappy did you see viewtopic.php?p=681636#p681636 ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
MisterMaker
Posts: 739
Joined: Mon Sep 21, 2020 7:41 am

Re: [Announcement] GPT4FreeCAD Plug-In

Post by MisterMaker »

I'm out of a job if this ever gonna take off. :shock:
Well at least I'd have more time to spend om Freecad and other hobbies.
heron
Posts: 307
Joined: Mon Apr 20, 2020 5:32 pm

Re: [Announcement] GPT4FreeCAD Plug-In

Post by heron »

revhappy wrote: Wed May 03, 2023 4:05 am You can find the GPT4FreeCAD workbench on GitHub: https://github.com/revhappy/GPT4FreeCAD

Looking forward to your feedback and suggestions!
Hello @revhappy and many thanks for this plugin.
I'm trying to play around with chatgpt in FreeCAD and can't get it to work. I have an Open AI API key for ChatGPT 3.5 which is my free option on openai.com here.
Is it compatible with ChatGPT 3.5?

FreeCAD 0.20.2 with the GPT4FreeCAD folder in the Mod folder crashes before starting.
FreeCAD 0.21 runs the macro fine but gives me errors when an input is executed.
Captura1.PNG
Captura1.PNG (26.67 KiB) Viewed 2659 times
If you are interested, I can give you the crash log file, or my full about Freecad info.
Freakcad_User
Posts: 30
Joined: Sun Feb 12, 2023 7:04 pm

Re: [Announcement] GPT4FreeCAD Plug-In

Post by Freakcad_User »

This is definitely interesting. AI assisted design is definitely coming. Like many, I have mixed feelings about how much AI can and will take over for humans.

Anyone tried Chat GPT to write code for FreeCAD (or other applications)? What I'm gathering is that to be successful using it to write code, you basically need to be good at writing code yourself, which I am not. This is because you need to:

1. Be able to verify and fix the code when needed, and also realize when it's spitting out a bunch of crap.
2. Be able to give it accurate and clear instructions, which is somewhat similar to instructing another human to do a new task. Garbage in, garbage out.

It also seems to be a lot more successful in creating smaller elements of an application. The larger and complex the task, the more it falls down.

Here's an article I just read about this topic if anyone is interested:
https://www.zdnet.com/article/how-to-us ... rite-code/

Todd M.
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: [Announcement] GPT4FreeCAD Plug-In

Post by onekk »

GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: [Announcement] GPT4FreeCAD Plug-In

Post by thschrader »

thschrader wrote: Fri May 12, 2023 12:23 pm
revhappy wrote: Wed May 03, 2023 4:05 am This is something I have imagined for a while. Imagine natural language prompts to create a model.
...
Looking forward to your feedback and suggestions!
Sounds interesting.

Some questions from an old dog:
1. Is it possible to feed the AI (any AI?) with old pdf or hand drawings and get a CAD-model, or at least a 2D dwg-file?
We often get drafts from other engineers in pdf format, we must redraw the stuff manually in CAD.
2. Is it possible to run the AI on my local machine?
One of our customers is the governement, we are not allowed to share files on servers.

Regards Thomas

EDIT: deleted due to customer request
example:
old_hand_drawing.JPG
User avatar
ebrahim raeyat
Posts: 619
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: [Announcement] GPT4FreeCAD Plug-In

Post by ebrahim raeyat »

Automation and AI in BricsCAD BIM, It is interesting:

@yorik

https://issuu.com/augi/docs/aw202307hr/26
Imagine
Posts: 31
Joined: Sun Mar 05, 2023 12:18 pm

Re: [Announcement] GPT4FreeCAD Plug-In

Post by Imagine »

Great Idea, Relatively new to coding & what I do learn is forgotten between intervals, every now & again I come across something that peaks my interest & 9/10 wish I was using Linux UI, How to compile github repos for Windows?

I have tried the drag & drop into both Mod Files, And perhaps the API system open AI implemented in 2023 is outdated? Considering it's everywhere in 2024. Hmmm it's not in FC-Windows! It needs to be (IN THE NAME OF PROGRESS).
Post Reply