Using ChatGPT and Fusion 360 API to Create a Script | How To Make A Script for Fusion with GPT3.5

Поділитися
Вставка
  • Опубліковано 16 вер 2024

КОМЕНТАРІ • 37

  • @lee3Dscanning
    @lee3Dscanning Рік тому +2

    Excellent video. I've been curious about connecting these two dots.

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  Рік тому +1

      Thanks Lee. I have more playing around to do with this tech. I think in the next 6mo or whenever GPT5 is out that will be the game changer for this. Right now Its a good tool to help, but its not really a replacement in my mind.

  • @jakebirkmaier5703
    @jakebirkmaier5703 Рік тому +2

    I have played around with using GPT to try and write a F360 API script and had very similar results of it being pretty close to correct, but having so many flaws that it would've been more useful to write the entirety of the code myself.

  • @Kabel3267
    @Kabel3267 Рік тому

    I was just thinking about trying to learn more about chatGPT and designing for me, when I saw this from you! I i am watching all your video to learn more about fusion 360, because I want to design a water hydration system for my tri bike. but am getting a bit stuck...

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  Рік тому

      let me know what you are stuck on. By water hydration do you mean for you? You can email me support@caducator.com . From everything I have done with GPT3.5 so far it can be helpful but not a replacement. GPT4 im told is the way to go.

  • @macedesign
    @macedesign Рік тому +2

    Agree with other comments that GPT4 provides way better results. Maybe a dumb question - is there a way to trigger a plugin externally? Seems like only way to run a script is to press run within fusion, right? Would be cool to have a method for text or values that load in an external sheet auto trigger the plugin. Or if that doesn’t work maybe a time-based trigger..

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  Рік тому +1

      Thanks! In Fusion there are 2 "flavors", a Script and an Add-in. In this video we make an addin which has a button in the UI. ua-cam.com/video/ZgRLqBBVpqE/v-deo.html Add-ins can be set to run at the start of fusion and do several things like send and receive HTML/browser data. If you add-in is running you could have it set up to "listen" for an event with a handler I suppose. I guess it kind of depends on what the end goal is that you are looking to achieve.

    • @macedesign
      @macedesign Рік тому

      @@LearnEverythingAboutDesign thanks so much, exactly the direction I was looking for. I’ve been thinking of ways to offer & automate semi-custom designs. Where a subscriber purchases a design that pulls specific dimensions or sketch text from their input. Ideally the event is as automated as possible / just exploring feasibility!

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  Рік тому

      @@macedesign Sounds like a cool idea! There is a product for Solidworks that does that called Driveworks and it will generate the 3d model, drawings, even email them to MFG.
      help.autodesk.com/view/fusion360/ENU/?guid=GUID-DF32F126-366B-45C0-88B0-CEB46F5A9BE8
      I would take a look at the HTML event thing in the sample. maybe that will give you some sort of pass-through to drive a design

  • @TROYOSTRANDER
    @TROYOSTRANDER 10 місяців тому

    Damn Matt, Such good content! Thank you.

  • @MuitoDaora
    @MuitoDaora Рік тому

    Maybe Bing Chat is better at this? It seems better with common interactions.

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  Рік тому +1

      Thanks. I have tried a few but didn't use Bing Chat. There is an endless number of choices. GitHub coPilot, Microsoft Edge has one. Bard etc etc. I think in the next few months the playing field will level a bit, but I think one big issue is that these resources have to make assumptions about the API, sometimes it pulls info from bad code online, sometimes its directly from the API help(or would seem). Some people have suggested various apps or interfaces that I haven't heard of. There is even a new text to 3d that builds point clouds based on voice or text...

    • @MuitoDaora
      @MuitoDaora Рік тому

      @@LearnEverythingAboutDesign I don't know about those ones but Bing is implement with GPT4 which could yield more consistent and assertive results. Especially in Creative Mode.

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  Рік тому +1

      I did give Bing a try, interestingly it got some harder code right the first time but had issues with easier stuff like ui.messageBox. it kept making it complicated and when feeding the errors back it wouldn't actually change the program although it claims it did. Ill do more playing! thanks

  • @TreeLuvBurdpu
    @TreeLuvBurdpu 11 місяців тому

    I wish i could read that little tiny screen. Cool static graphics though.

  • @JackInns99
    @JackInns99 Рік тому

    I've been playing around with this API and I am really struggling to understand the CAM part of the API, specifically generating setups where one does not exist. Any suggestions for the best places to find more info besides the documentation?

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  Рік тому +1

      Can you give me an example of a script you are trying to write? I know you said not the API documentation but here is a sample program that starts in the design workspace, models a part, switches to MFG, makes a new setup and creates toolpaths. help.autodesk.com/view/fusion360/ENU/?guid=GUID-995d634e-a8ef-4f2b-a826-1d32171f4998

  • @tairanliu2210
    @tairanliu2210 Рік тому

    Can I import a web server to this environment to expose some of the functionality to the web

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  Рік тому

      there is an HTML event handler. The add-ins that let you browse and insert parts like McMastercarr are all done as add-ins through the API so yes it should be possible. When you create a new Add-in, the sample code will have an HTML event handler. Inside of the code go to Commands > Browser > entry.py to see the sample code for it.

  • @ibrahimal-saif9322
    @ibrahimal-saif9322 Рік тому

    Can I ask what is the reason for using fusion 360 and not solidworks, I use solid work and I want to know if there is a big difference

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  Рік тому +2

      If you are making a script in Solidworks you will be either using VBA, like you do with MS word, excel etc, or C(which you can also do in fusion). The main reason for using Fusion is the cost of the tool vs Solidworks. Its free for Hobby users and the commercial license is between $300-$500/year depending on when you buy/sale etc.
      If you want to learn Solidworks API I don't have any current videos on that but I suggest going to CAD Sharp. Ive done project with Keith there and he is the best of the best and has a lot of free resources on his site. www.cadsharp.com/

    • @ibrahimal-saif9322
      @ibrahimal-saif9322 Рік тому +1

      @@LearnEverythingAboutDesign Thank you so much

  • @GarrettBriggs-l9g
    @GarrettBriggs-l9g 10 місяців тому

    Not sure If this is appropriate to ask here, but I can find the answer anywhere. And many forums that I have checked the solutions offered haven't worked for me.
    When trying to edit the API scripts it does not open VS Code.
    I could not do it on my computer at work so I tried to see if it would work on my computer at home and it did work.
    One thing I noticed was that my work computer never had the .env file, while my home computer did. When trying again a day later my home computer no longer open VS code.
    When opening Fusion 360 and going to edit the script a quick command terminal pops up, then disappears and nothing happens.
    I'm sorry but could someone link me to a known working solution.

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  10 місяців тому

      Any question is welcome. While I haven't had this happen personally, I have seen it come up before and usually reinstalling VS Code is the work around. You could open VS Code and from the help menu "Check for Updates". Maybe an update is needed and that would resolve the issue. If a repair/reinstall of VS code doesn't fix it, the next thing I would try is repairing the fusion install. Probably a long shot.
      Are your work and home machines running the same OS? win10 or win11?

    • @GarrettBriggs-l9g
      @GarrettBriggs-l9g 10 місяців тому

      Sorry for the late response I have been communicating back and forth with the Autodesk service line. Wanted to check everything with them before coming back here in case I got a solution.
      Thank you for the suggestions they did not seem to work. One thing that is unusual is that it will open VS Code when it is a C++ script but not when it is a Python script. I believe it is something with the way my company set up my work machine, I tried it on a coworkers computer and it produced the same problems, where C++ was fine but Python was not.
      I was getting an error Unable to get local issuer certificate, which I believe has something to do with our network, so I am trying to get local IT on it. Although, even when I use my hotspot it still produces the same results with my home working and work computer not working.
      Also, to answer your question No, my work machine is win10 while my personal is win11.
      @@LearnEverythingAboutDesign

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  10 місяців тому

      @@GarrettBriggs-l9g Thanks for getting back with more info, but sorry it still isn't fixed! In the old days Fusion would come with a python scripter if there wasn't one on the machine. Not that you want to uninstall fusion and vs code, but maybe as a last resort. With your VS code at home (without your company IT control) do you have any python extensions installed?

    • @GarrettBriggs-l9g
      @GarrettBriggs-l9g 10 місяців тому

      Yes, I have Pylance v2023.10.40 and Python v2023.18.0. I did uninstall Fusion and VS Code at work. Then reinstalled Fusion and when trying to edit the script it had me download VS Code through there, but still no luck.@@LearnEverythingAboutDesign

  • @brianzacharias
    @brianzacharias Рік тому

    Could you please show us how to 3D model a turbocharger 👉👈😅

    • @brianzacharias
      @brianzacharias Рік тому

      I’ve been watching your videos and I’m genuinely in disbelief that you aren’t getting more views. You’re showing all the secrets to design and you’re really ahead of the game here

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  Рік тому

      Thanks! it has been growing but other than the last few seconds of the video I never ask for Subs and that might hurt me :) On the turbocharger are you looking at just how to model one? Or for production casting?

  • @glowing_kitty
    @glowing_kitty Рік тому

    Using 3.5 is the problem here… GPT4 is way better in terms of quality of the results. So I would never advise using GPT3.5, except for some very very simple stuff that needs to be cheap to generate.

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  Рік тому

      Yeah that is what I keep hearing, but since GPT4 is available to developers they don't seem to be publishing who is using 3.5 and who is using 4. How are you accessing 4?

    • @MakeTechPtyLtd
      @MakeTechPtyLtd Рік тому

      @@LearnEverythingAboutDesign have you upgraded to pro to access GPT4 yet?

    • @LearnEverythingAboutDesign
      @LearnEverythingAboutDesign  Рік тому

      @@MakeTechPtyLtd I tried it on Bing and it did better with complex code but struggled with more simple tasks oddly. On there i was hit with a limit of replies per day.... I haven't tried it directly on OpenAI though. How do you know which site is actually using GPT4?

  • @Lone_Wolf-nu1bm
    @Lone_Wolf-nu1bm 4 місяці тому

    screw AI ....