FreeCAD & Python | Using the API for automation

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 27

  • @Ronak289296
    @Ronak289296 2 года назад +2

    Thanks for the video it's extremely helpful. Hope you have a plan to make a video on FreeCAD + Django.

    • @python360
      @python360  2 года назад +1

      Thank you, will see what I can do👍👍

  • @sauravbujade9792
    @sauravbujade9792 10 месяцев назад +1

    Instead of freecad's python console, how can we use external IDE (like Spyder) to implement code?

    • @python360
      @python360  10 месяцев назад +1

      I did some videos where I used CadQuery with Python in VScod, CadQuery allowed me to make the primitive shapes. But do you want to write the code in an IDE and send it to FreeCAD to generate the model? There is not much on the API, wiki.freecad.org/FreeCAD_API
      Also see : OpenSCAD

  • @shivayogibankapur1326
    @shivayogibankapur1326 2 года назад +1

    Nice Video

    • @python360
      @python360  2 года назад

      Thank you very much 👍

  • @kiwihuman
    @kiwihuman Год назад +1

    can you fix the audio on the video because it only has sound output on the left channel

    • @python360
      @python360  Год назад

      Ah, sorry, I don't have the raw audio file anymore and there's no way to alter it via RUclips

  • @qzorn4440
    @qzorn4440 Год назад +1

    Can the new FreeCAD 0.21 do some of the SolidWorks PLC electrical Panel Builder examples? SolidWorks can link 3D sensor models, electrical schematic, and error alarms. Thanks.

    • @python360
      @python360  Год назад

      I don't know to be honest, maybe message "Mango Jelly Solutions" on his channel - he knows so much about FreeCAD

  • @ranganathd5954
    @ranganathd5954 2 года назад +1

    hello sir, I have to write a script for generating png format from igs file. Can I do this using FreeCAD? please help. Thank You

    • @python360
      @python360  2 года назад +1

      yes, you can import iges, and you can export to png
      are you ok to do this just as a python macro inside freecad?

    • @ranganathd5954
      @ranganathd5954 2 года назад +1

      @@python360 sir, i have to write a script such that upon running that script, the iges files in a particular folder should be read, and png files have to be created in some other specified folder for each of those igs files. This is for a project

    • @ranganathd5954
      @ranganathd5954 2 года назад

      @@python360 I am still a beginner in freecad and python, if u can just give a path on what to use and how to proceed that would be a great help sir

    • @python360
      @python360  2 года назад +1

      Ok, if you get acquainted with cadquery, that would be a nice quicker way to do it and not have to open up FreeCAD on each iteration.

    • @ranganathd5954
      @ranganathd5954 2 года назад +1

      @@python360 thank you sir, are your video tutorials enough in order to complete the required task

  • @zulqarnainhuda2646
    @zulqarnainhuda2646 2 года назад +1

    Sir is there anyway we can convert step or dxf file into png?

    • @python360
      @python360  2 года назад +1

      Check this, but choose png instead of step...
      ruclips.net/video/o8TTFhj1pHc/видео.html

    • @zulqarnainhuda2646
      @zulqarnainhuda2646 2 года назад

      @@python360 I am getting couldn't create glx context error

  • @ranganathd5954
    @ranganathd5954 2 года назад +1

    hello sir, is there any way to convert .fcmacro to .exe

    • @python360
      @python360  2 года назад

      why do you need to do that, can you elaborate, you can call freecad from a script by the way

    • @ranganathd5954
      @ranganathd5954 2 года назад +1

      @@python360 sir, its for the same task of automating image generation of igs files. I have created a macro that generates png images of the igs part files. But to run the macro I have to launch freeCAD. Is there any way of executing the macro without opening freecad?

    • @python360
      @python360  2 года назад

      I think you can run FreeCAD "headless" - I'll check FreeCAD documentation 👍

    • @python360
      @python360  2 года назад

      @@ranganathd5954 ah ok, have a look a this, : tracker.freecadweb.org/view.php?id=3077