No video

How to Automate Tasks with AutoCAD and Python

  Рет қаралды 14,374

Ahmed Kullab

Ahmed Kullab

Күн бұрын

Welcome to an exciting intersection of design and automation! In this episode, we dive deep into the realm of automating AutoCAD tasks using Python, a journey tailored for engineers, architects, and all AutoCAD enthusiasts.
🔍 WHAT'S INSIDE:
Introduction to PyAutoCAD: Discover how this Python library can revolutionize your AutoCAD tasks. From manipulating objects to extracting valuable data, experience the power of combining Python's simplicity with AutoCAD's vast capabilities.
Real-world Application in Road Design: Understand the real-time application of PyAutoCAD in road design. Learn how to automate the visualization of benching steps between the proposed new pavement and the existing one - a critical aspect in the world of infrastructure and road planning.
Data Extraction in AutoCAD: Kickstart your automation by mastering the art of data extraction. We walk you through the entire process, from the command line in AutoCAD to its application in Python.
🖥️ DEMO: Witness a live transformation where we convert a regular AutoCAD drawing into an automated Python script using PyAutoCAD.
💡 WHY WATCH: If you're passionate about efficiency, accuracy, and automation in design, this video will equip you with a toolset that can potentially save you countless hours of manual work.
#AutoCADAutomation
#PyAutoCAD
#python
#AutomateCAD
#RoadDesignTech
#dataextraction
#CADWorkflow
#EngineeringAutomation
#DesignWithPython
#CADProgramming
#BenchStepDesign
#PavementAutomation
#TechInEngineering
#ArchitecturalAutomation
#PythonForAutoCAD
#chatgpt
Sound Effect from pixabay.com

Пікірлер: 38
@jakelong-hx1ue
@jakelong-hx1ue 11 ай бұрын
You’ve just blown my mind, I’m doing this right away
@ahmedskullab
@ahmedskullab 11 ай бұрын
Wow, I'm so glad to hear that this resonated with you! 😊 For those who've tried this integration or are thinking about it, what other innovative ways can you envision using AutoCAD with Python?
@jakelong-hx1ue
@jakelong-hx1ue 11 ай бұрын
I just got him/her to do at least 3 things that have been pestering me but I don’t ask anyone all I usually get back is “why would you want to do that?” This will be Excellent for music, like, really really excellent. Recording large sessions has hundreds and hundreds of little tasks to do that to be honest, almost anyone could do them with a bit of learning but man, this is on a whole other level. I just wrote a thing that I used to have working in excel into Python to batch create drawings in 20 MINUTES! Hahahahahah 😂
@dushyantvyas3589
@dushyantvyas3589 Ай бұрын
you can do the same thing using Dynamic blocks as well, I'm talking about this specific task only. Otherwise automation should be used for large scale like view creation, getting technical info of objects etc. etc. using Python. I use FreeCAD because it has in-built Python console. Although I don't know anything about Python at all.🤣
@JuanCarlosGuadama
@JuanCarlosGuadama Ай бұрын
Excellent video. Just as this Python library can draw in AutoCAD, can it extract data from the AutoCAD file using Python without using AutoCAD?
@ahmedskullab
@ahmedskullab Ай бұрын
Pyautocad works on active drawings. EZDXF library is your choice for extracting the data without using AutoCAD. Next video will be covering the ezdxf library
@kitchenbasha
@kitchenbasha Жыл бұрын
شكرا جزيلا يا ريت يكون كورس كامل للبايثون في الاوتوكاد بالعربي. او يكون في ترجمه
@ahmedskullab
@ahmedskullab Жыл бұрын
مشكور حبيبي على مرورك ، ولا يهمك، الفكرة حلوة بس بدها شوية وقت
@kitchenbasha
@kitchenbasha Жыл бұрын
@@ahmedskullab تسلم يا باش مهندس.. بالانتظار
@paulporstein4420
@paulporstein4420 5 ай бұрын
Hi, great video! One question: where can I find the PyAutoCad documentation? I honstely have a very hard time to find it online. Where do you know all these commands from? Thanks!
@ahmedskullab
@ahmedskullab 5 ай бұрын
True, I had challenges too, I use ChatGPT quite often nowadays. Also searching online. There are some information in pypi and GitHub …
@paulporstein4420
@paulporstein4420 5 ай бұрын
@@ahmedskullab I See... Do you perhaps have a personal selection of commands which you could share?
@rehialeontieff1120
@rehialeontieff1120 4 ай бұрын
Is it also possible to do it with Autodesk civil 3D ? Does pyautocad also works with this software ?
@ahmedskullab
@ahmedskullab 4 ай бұрын
I have not tried it with Civil 3d before! it might work. PyAutoCAD is a Python library designed to interact with AutoCAD via its COM API. to automate tasks in Civil 3D using Python, you might need to explore other Python libraries such as use of .NET API
@joshuachiriboga5305
@joshuachiriboga5305 4 ай бұрын
@@ahmedskullab Yes it works with civil3d, however I believe it only works with autocad objects. So it worn't with pipe networks, surfaces, etc.... I am just getting started but I believe that this is accurate.
@thebigb1829
@thebigb1829 2 ай бұрын
Surely you could just load this pyautocad lib into a civil 3d DYNAMO “user” node (can’t remember the correct term for the custom python nodes) and doing it is this way you most likely could automate most of the first manual starting steps shown in the video with the csv import/export nodes in the default dynamo libraries or just selecting the data properties directly in the dynamo script without having to leave civil 3d. Haven’t played around with it too much, and there is way more tuts YT for revit dynamo python node creation but principles are exactly the same.
@donnygarnett6543
@donnygarnett6543 2 ай бұрын
Subscribed.
@ahmedskullab
@ahmedskullab 2 ай бұрын
@@donnygarnett6543 thank you
@user-xu5rz3sc3q
@user-xu5rz3sc3q 7 ай бұрын
Is it possible to create a code that allows me to create a shop drawing based on an architectural drawings ? I could have all the architectural drawings and the shop drawings matching the architectural drawings in a database
@ahmedskullab
@ahmedskullab 7 ай бұрын
Yes it is possible!
@cah048
@cah048 Ай бұрын
The code is scale it down by 12.
@alialsoumahi4207
@alialsoumahi4207 5 ай бұрын
هلا اخوي فكرة جميلة جدا ، بس انا كنت ابحث عن لغة برمجة تعطي واجهة الاوتكاد بشكل ابسط بحيث ان المستخدم يغير من الاطوال والاشكال والخ ويتم حفظ هذا التغيير ، وبالتالي انا اعرف ايش التغير اللي قام به المستخدم واحفظه بالداتبيس عندي ..هل ممكن هالشي
@ahmedskullab
@ahmedskullab 5 ай бұрын
أهلا وسهلا شكرا للتعليقـ، أكيد من الممكن تعمل واجهة للمستخدم وتعمل برامج خاصة بك، التعمال مع الكود مباشرة فيه ميزة المرونة لذلك افضل التعمال مع الكود مباشرة في البداية للتعلم وللتمكن من عمل التغييرات بسهولةـ لما تصل لمرحلة التغيير في الرسومات قليل ممكن تعمل واجهة ونموذج خاص بك.
@joshuachiriboga5305
@joshuachiriboga5305 4 ай бұрын
I need to iterate over objects within a block, does anyone know how?
@ahmedskullab
@ahmedskullab 4 ай бұрын
consider using AutoLISP
@ddoongie1982
@ddoongie1982 2 ай бұрын
@@ahmedskullab consider using LEE-Mac's autolisp library. Also, if it's a dynamic block within a dynamic block, you'd need some fancy ssget/entget function that would separate each blocks. Source: I have my own autocad/autolisp library.
@Jizay96
@Jizay96 10 ай бұрын
I have some problem with create a viewport in layout by pyautocad, can you make a video to share me!
@ahmedskullab
@ahmedskullab 10 ай бұрын
I appreciate your honesty. I'll take your comments into consideration.
@nixonthuo808
@nixonthuo808 11 ай бұрын
Can you save the drawing as a vector and use place it in another drawing using pyautocad?
@ahmedskullab
@ahmedskullab 11 ай бұрын
Hey, there is a way to save the drawing as block using InsertBlock function, not sure if this is what you meant?
@jakelong-hx1ue
@jakelong-hx1ue 11 ай бұрын
All drawings are vector? Unless do you want to bring it in to illustrator or maya etc?
@PANDURANG99
@PANDURANG99 2 ай бұрын
pyautocad is not updated while long time
@ahmedskullab
@ahmedskullab 2 ай бұрын
That's true, ezdxf has this better advantage. I will cover it in another video.
@PANDURANG99
@PANDURANG99 2 ай бұрын
@@ahmedskullab kindly make a little big automation beyond line , circle, rectangle, layers
@Jose-cf8ps
@Jose-cf8ps 2 ай бұрын
Sorry the example is not great. Also can do that in any language by creating a script. But anyway, good video.
@ahmedskullab
@ahmedskullab 2 ай бұрын
Ok, thanks
Automate your job with Python
6:07
John Watson Rooney
Рет қаралды 397 М.
Pyautocad #python #autocad #chatgpt #ai #automation
0:52
Ahmed Kullab
Рет қаралды 2 М.
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 3,4 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 151 МЛН
Harley Quinn's revenge plan!!!#Harley Quinn #joker
00:59
Harley Quinn with the Joker
Рет қаралды 28 МЛН
Watch AI Program a CNC From a CAD Drawing!
8:59
CamInstructor
Рет қаралды 167 М.
AutoCAD Automation!! using Python and ChatGPT
8:18
Ahmed Kullab
Рет қаралды 13 М.
Is AI replacing CAD designers already?
6:52
SolidWorks With Aryan Fallahi
Рет қаралды 209 М.
How to speak with #autocad but using  #python #chatgpt
25:03
Ahmed Kullab
Рет қаралды 1,8 М.
Automating tasks using Macros in AutoCAD
17:36
SourceCAD
Рет қаралды 79 М.
How ChatGPT Improved My AutoCAD Workflow FOREVER
17:33
Lazy Arquitecto
Рет қаралды 51 М.
How can Python do your CAD work?!
4:34
Ahmed Kullab
Рет қаралды 744
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 3,4 МЛН