AutoCAD Automation!! using Python and ChatGPT

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

КОМЕНТАРІ • 31

  • @luisvivanco8544
    @luisvivanco8544 Рік тому +3

    thank you for your video. I waiting another themes in that direction. Clear and comprehensible English.

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

      I'm glad to hear you enjoyed my latest video and found my English clear and comprehensible. I deeply appreciate your feedback and your patience while waiting for new content.
      Please stay tuned as I continue exploring topics in this direction.

  • @SonLe-wi8ic
    @SonLe-wi8ic Рік тому +2

    Hi Boss. Does pyautocad can edit sheet set manager of autocad?

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

      Hey, pyautocad is a tool for automating tasks in AutoCAD using Python. As of now, I mainly used it for drawing and editing entities. For the Sheet Set Manager, there might not be direct support in `pyautocad`. However, if there's enough interest, maybe this feature could be explored more!

    • @SonLe-wi8ic
      @SonLe-wi8ic Рік тому +1

      thank you! I want to edit the .dst file of sheet set manager using python. does you have any suggestions for me?

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

    hi, Can we use pycharm instead of visual studio code?

    • @ahmedskullab
      @ahmedskullab  Рік тому +3

      Yes, you can use PyCharm instead of Visual Studio Code to automate AutoCAD with PyAutoCAD. The choice of IDE doesn't impact the functionality of the code you write. Just make sure to properly set up your Python interpreter and install the necessary libraries.

  • @abdulkarimalburayh5807
    @abdulkarimalburayh5807 10 місяців тому +2

    Nice work

    • @ahmedskullab
      @ahmedskullab  10 місяців тому +1

      Thank you 🙏 I hope it was helpful for you

    • @ajarivas72
      @ajarivas72 9 місяців тому +1

      @@ahmedskullab
      what is the best language to automate AutoCad drawings (Python, Lisp or Visual Basic) for a beginner?

    • @ahmedskullab
      @ahmedskullab  9 місяців тому +1

      @@ajarivas72 for complete beginner Python, due ease of learning, readability and broad applications

    • @ajarivas72
      @ajarivas72 9 місяців тому +1

      @@ahmedskullab
      Thanks. I will procede with Python as you kindly suggest.

    • @ahmedskullab
      @ahmedskullab  9 місяців тому

      Best of luck!@@ajarivas72

  • @shreyavalte3077
    @shreyavalte3077 7 місяців тому +1

    This is from developers point of view,how can core electrical,civil, machanical engineer will work with this, do we need to create UI

    • @ahmedskullab
      @ahmedskullab  7 місяців тому

      I would agree but AutoCAD automation with Python opens vast possibilities, beyond what a UI can offer. Learning to code not only expands your toolkit but also unlocks custom solutions. After all you could create UI for your own work

  • @alex_1251
    @alex_1251 8 місяців тому +1

    Hello
    I have a problem linking python with autocad map 2024. I get a com error everytime i run the code . You said i have to check a com box in options>system , but i can t find the box you talked about . I also searched this problem online , and found other people facing the same issues on github. Any help would be aprecciated .Thanks!

    • @ahmedskullab
      @ahmedskullab  8 місяців тому +1

      Alex, could you explain what are you trying to do and arr u using a python library?

    • @alex_1251
      @alex_1251 8 місяців тому +1

      I am trying to run a test code from chat gpt and I have imported pyautocad library . Also , do i need to have VBA installed in autocad in order to get it to work ?

    • @ahmedskullab
      @ahmedskullab  8 місяців тому +1

      I would test it for simple codes like this below:
      from pyautocad import Autocad, APoint
      acad = Autocad(create_if_not_exists=True)
      acad.prompt("Hello! AutoCAD from python.")
      print(acad.doc.Name)
      check if it prompts the message in AutoCAD

    • @alex_1251
      @alex_1251 8 місяців тому +1

      Hello. Thanks a lot for your feedback. I managed to make it work. I just needed to write something simpler and to work from there. I thought it was something wrong with my version of autocad but everything is good ! 🙏🤑

  • @blissfulrespite
    @blissfulrespite 5 місяців тому +2

    I have little confusion.If we write python code then how does it connects with the Autocad automatically..?? some additional steps are needed or not ..??If needed then please tell me which way to connect both of them

    • @ahmedskullab
      @ahmedskullab  5 місяців тому +1

      Its via COM, I am preparing a video to explain how all this work

    • @blissfulrespite
      @blissfulrespite 5 місяців тому

      @@ahmedskullab thanks brother

  • @duongnguyenta453
    @duongnguyenta453 9 місяців тому +1

    sorry. Can you show how to select only the object LINE from screen? Please

    • @ahmedskullab
      @ahmedskullab  9 місяців тому

      Thank you for the comment, it looks like a good idea, I have used LISP scripts to do that before. In pyautocad, there is a function iter_objects('Line') you could use for iterating on lines only. I will add to my magic list😊.

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

    hello, i am from cambodia , and i am civil engineer , can you do a video about civil 3D with bing Chat using pycivil?

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

      Thank you for your comment. As of my knowledge there is not a widely known PyCivil specifically for Autodesk Civil 3D automation. Also I believe pyautocad is mainly designed to work with the basic AutoCAD environment and its core functions, not specifically with the extended features of C3D.

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

      However, there are indeed several tools and methods available for automating tasks in Civil 3D. Some popular options include Dynamo, the .NET API, and VBA (Visual Basic for Applications), although VBA is considered a legacy option and less commonly used these days.

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

      Anyway I'm considering creating videos to provide quick tips on how to get started with some of these automation tools in Civil 3D. Stay tuned for that :) and I hope it will be helpful for you and other users looking to improve their efficiency and productivity using Civil 3D.

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

      @@ahmedskullab okay cool, let's see.

    • @ajarivas72
      @ajarivas72 9 місяців тому

      @@ahmedskullab
      I am tuned to watch your videos about those automation tools in Civil 3D in AutoCAD.