Transcripts
1. Introduction: Hello. My name is Abu Hamza. I'm using AutoCAD for
more than ten years. How to create AutoCAD list using AI tools like Chat
GPT and copilot. Before there was a time when we need developer to
make our custom list. Now the time is
artificial intelligence. So we can effectively utilize AI tools to generate our
custom list as per our work. In this class, you will be able to understand
comprehensively how to utilize AI tools to
write your list perfectly. That will work as per
your customized work. This is just refined
filtered technique. I'm using hair GPT and copilot. From 1.5 years. I have well understanding
how to utilize these AI tools to effectively create wn
custom list protein. I will attach AI
generated is protein, access that project file and customize or generate as
per your Own work and let me know how you have created your first list
protein using AI to. I will see you in the class.
2. Create LISP Auto Text: This lecture, we will create
is protein, Auto text. Atotext means I will
type single letter only, and I will get complete word. As much as text, I will feed in is, I will type first later and I will get full
complete word. This is script we will create from the very
beginning without any coding, without any programming
experience or any knowledge. Okay right from scratch. Let this very carefully. This is exactly deep
level understanding. If you got this point, you can create any kind of simple list protein
as per your own. We will use had GPT. We will use copilot also. Both we will use alternatively. For now, we will use had GPT to create our Auto
text list protein. This idea came personally. Now I will explain. Make a list that help placing text in AutoCad,
fully automatic. I mean when I type AT xt,
this is your command. Then it asks to
input first later. For example, I will type B only, B, and I wish to
have B for bedroom. When I click over the screen, I get the full word bedroom. Just by typing B only, so make same like
number of word. B for bedroom, double
B for bathroom, K for kitchen, D for
dining, L for living. You can keep as much as you
want your un text and it's short key for L.
The single letter, whenever I type, I must
get its full word and make this list work properly and also keep text
height for t unit, and keep text style. Optionable means I can customize text style and also
keep layer based. Means the text created should
be particular layer based. Layer name Auto text, please avoid mistakes and
avoid bad arguments either. And avoid sting P Nill make this list
comprehensively enter. This reference I have given. Now it is creating script
Let's create successfully. Now, copy this code
and come to here. New text. You can keep any folder. We'll keep here Atotext. Our short key is AT xt. You can keep your un short key, no problem and paste your
code here. This is okay. Saves Let this dot LSP. This is very important, very important and
save and close. We'll see it's working on art. Type AP to upload a script
and go to located folder, list Atotext load
from here and close. Now, I will type here
first AT xt and intravent. It asks you abbreviation
means your first layer only. For example, I will keep here, B, for bedroom, and kill here. C, layer got created. It's creating layer. Intravent. And click here, invalid option keyword
function canceled. We're getting this story. Same we will explain here. When I type APXt and
then give abbreviation, for example, B for bedroom, then it have more
story, more input. It asks to provide text style
and maybe ask for layer. I do not want any further step. When I type B, then
just I click over the screen to get the
word and nothing else. For text style, I will
change in script itself. You don't need to prompt here, make for me work properly,
only three step. ATXT then before bedroom, then click over the
screen, kindly correct it. I explain the situation. You can type speedily. That is not important to
had correct spelling. Now it is re correcting again. What the problem we
face, we simply explain. Now, same thing
here, copy the code, open your existing script and
remove and paste new one. Close, save. Now what we had to do this here, Ato text, load from here, close. We will try again, AT xt. Now, it asks for abbreviation,
let this here B. If you see here
invalid abbreviation, when I type B, small
B, it's invalid. I will type B. Now it is okay,
insertion points. Just click over the points. Now you see here, we
are getting perfectly. Means smaller B, not work, capital work for
HL D for dining. K for Kitchen, double B for bath means our script
working perfectly. The problem is
lowercase, uppercase. What we had to do
we have to explain the situation. It's working. But when I type H B or B, et cetera, then it work and
when I type smaller B or B, then it's a invalid
abbreviation. I explain the situation. Then what I will do,
please make this work for both smaller or uppercase. Whatever I will type, I
get same as it is for. I just explain the
situation, okay? It will rewrite
your complete code. Let this write here, perfect. Now copy your code,
remove older one, paste new one, and
simply close and save. Now, upload again. Atotext, load, close. After that, type here, ATXT now upper or lower case. Let this lowercase
B and kill here. Now we are getting
in lower case, same as it is, we will
check capital one. For both, we are
getting perfectly fine. We have successfully
created our Atotxt lisp. If you see here,
whatever I type here, I'm getting exactly in one time. Now you see here. What the
balance we will customize. We will customize it text style. You had to convert
into multitext. After that, go to Edit
and let this here font. Which font you want to place
your own custom style. You can choose from here. For example, now let this explode your text
to be exploded. We have chosen this text style. I will explain the situation
here. Let this here. We will tell keep text style. What we are getting here. Same. If you make single sailing mistake,
your list not work. BHN SHRIFT underscore CO. Now, this will rearrange as
per given text style. Let this arrange properly. Now, what we will do, we will copy this code
and same come to here, open your script,
remove older one, and paste new one. Okay? So we are getting
our new text style. If you see here, this
text style you must have already in text
format in Autocad. If you don't have, your
script will not work. What we'll do, we will
keep same as it is. Let this text height 50 unit. As I said, we had to
change color code, let this one for red, and you had to keep everywhere
red color. Let this here. Same upload, Ato text,
load, and close. Now let this AT xT inter
abbreviation B, ankle here. Now you see here, we are getting red color and we are
getting our untext style. Let this double B for bathroom
and same as it is for L, D for dining, L for living. Again, I want to
change text style. What I will do, I
will convert into text and come to here format. And choose here your font. You can choose any
font from here. For example, let this one. We will customize this font
style and explode simply. You must have to explode after
choosing your font style. Then you will get
its correct name. Now we are getting
this name and again open What you had to do just
you had to write same name. As I said, know any spelling
mistake. Let this BL. MT. What you had to do, let this full copy as
it is paced everywhere, wherever you are getting
your text style, and one here also. Simply close, we have customized our
new text style, okay? I save, remove this
one, upload new one, and this here AT xt, and this here, B for bedroom, type B only, and kill here. Now we are getting
our new text style what we have chosen, for o cien, D for dining, S for hall, double B for bathroom,
L for living. Now you see here, as I said, I want to add my un text, copy this one and come with
same place, paste it here. I will add here
as for staircase. For example, you can
keep your Aun text. Number of text, no problem. We have added E for elevator. Simply close. Let this upload again. Load close, let this
AT xt press Sir, we have added. Now you see here. Elevator, we have added.
Now you see here. This is the perfect
way to create your own custom list that
perfectly work in auto cad. You had to understand repeatedly how to provide correct prompt, how to explain situation, whatever you are working wherever you are
working in the world. I exactly don't know. But I can say one thing. Just imagine one day
for how you work. After that, just think
how you automate. For example, your
calculation, your line count, your hatches, it can be anything and definitely
just wrote down. After that, extract that detail, ask JAR GPT to automate
your Sm SMA task. Your query, your concern,
just mentioned below. In this complete chapter, we understand how to
create autotext list. This list in high demand. Similarly, we will
create many lists here. Okay
3. Create LISP Auto Level: This lecture, we will create
lists that help to leveling, whether plus Y direction or minus Y direction
in text format. Okay for that, we had to explain comprehensively
and we will use copilot. The idea is simple.
We will create Auto labeling, text format. Each ary height is straight
to Y minus or plus. Let this explain
here, shared GPT, create a list that help to
find the label at each click. It should work when
I type C level. This is our short
key then ask to type Z or zero to get
initial level zero, zero. Means your first click
should be 00, okay? Then ask to click
over the screen, then get the level zero, zero means our first level, we will input zero and
when we click plus 0.00. Then go as per labeling means plus Y direction
or minus Y direction. At each klick Now don't
create this list. Just make a prompt
more comprehensive and add layer based and text format, level text height, key 40, and keep layer text color green and layer name, let this here. Label check, enter. This prompt we will
paste in copilot. We will use alternatively, whether shared GPT or copilot. Why I'm using copilot, I repeatedly try this layering in shared GPT, it
is not working. That's why we will use copilot. Same prompt. Here we
are getting our code. Now, what you have to do, just copy your code. Let this script paste
your code, save. What you have to do this upload, check level and type C level, we will see it is
working or not. And now type zero, as I said, when you
will type zero, you will get initial value zero, zero, initial text
format height 00. You had to input numeric value. Let this zero and
click over the point. This identify zero, then 380, and then 7201040, 13 60, 1710 means this list
working properly. Now we will see our minus
direction working or not. This is also important.
This is plus level. We are kill here, it is working, but minus level,
we have problem. If you see here, when
I go minus level, it also show plus value. We'll explain this
situation here. For now, what you have
to do come to here. When I click in minus direction, it also give plus value. I need minus Y direction must be minus level and plus Y
direction must be plus level. So I explained the
situation. Now intern. It will revise your script and what you do just
copy this code. Same as risk come to here. Remove this one, paste
new one, and close. Now we will see our minus
issue got resolved or not, C level type zero to
get initial level zero, zero, and go like this. As we know already we
are getting plus level, but we will check minus level. If you see here,
still we are getting plus level means we
are going minus, but also we are getting plus. Same as it is, we had
to resolve this issue. Let this C level
initial level zero, zero, and we are getting
plus 250 downward also. It is counting
minus Y plus level. We explained the situation
once again, okay? Now, what you have to
do let this text copy, remove older one, keep
new one, close and save. Now, we will see our
problem solved or not. Upload and close. New one we have uploaded. C level, input zero. This is R plus. Now you see here we are getting
minus level perfectly. If you go plus, we are
going plus direction means now this is script working perfectly as per
hour requirement. Now I will let some addition. Can you keep text height
two times more as compare existing one and keep
text style standard. Means I request
make text height, double size, and keep
text style standard. It will revise as per hour
prompt, copy this one. Open your script page
new one, and simply say. Now, let this upload and close. Let this point
stretch up to here. Now let this again,
C level type zero, take your initial level
and go straight to Y direction or straight
to minus Y direction. Now you see here means this
list work perfectly fine. We have successfully created Auto leveling list routine that place Ato level
in text format. If you want to
change text style, you can change from here. It must be existing text style. If you want to
change text height, you can change
from here. Simply. We have successfully
created Atbl is protein. You had to repeatedly practice, then you will understand this comprehensive is
protein creation. Okay
4. Create LISP Total Length: So the idea is simple. We will create list to find
out total length in meter, whether arc, circle, line, B line, all in one time. This is our idea. We will create this list right from
scratch, how to find out, total length in text format in just one time for each entity
and then total summation. This is the idea. We will
generate fully AIE based, load this shared GPT, and input your
comprehensive detail. Generate a list that
help to find out P line arc circle length of each entities in
text format in meter, including total answer, I should work like
when I type PW, then ask to select
the entire line, P line, arc circle, et cetera, then enter. At the same time, I
get the text format, length of each selected
entities at the center. When I enter again, then ask to click over the
screen to get total length. All the selected
line arc circle. I mean it give both
for each and for entire and make this
text layer based, layer name total length, text layer name, and
keep text color green. Make this list properly
before making this list, just optimize this input, this prompt, and then to understand you better and then make this list accordingly. Please avoid mistake. I are function canceled, string, E, null, et cetera. Just make this list
comprehensive. This is our detailed
suggestion to explain our requirement also
keep text scale 40 unit. First thing first, hair
GPT optimize this prompt. After that, lisp code we are getting here. We
are getting both. Our input optimization for comprehensive understanding
plus our list code. Okay. Let this very,
very carefully. You have to understand
one time only. The idea is very simple. We need list that find out total length
for each entities. Copy this code, open your list. You can take any
format, paste it here. Our short key PL Now,
what you have to do, let this load application
and go to your located, file, load, and close. The list we have
said, E, selectl. You'll see it's working or not. Let this carefully. We are getting problem
here. What the problem? Error function canceled
means it is not working. If you see here, we are getting some text at
the center point. We don't know this text,
how we are getting. But each center point, we are getting this text
when we apply this list, why we are getting this
text we exactly don't know. Listen. You had to
explain the situation. It give text color at the
center in yellow, named CHPROP. It not give length of
entities like x dot XX meter. We explain our problem. Then again, check GPT
revising as per this input. Let this correct it. Now, select the text for remove and again, copy that code, new code. This code generated perfectly. Open your list,
remove older one, paste new one, save. You'll see it is working
on load application. Let this PAL, just select
our and intervent. Still problem is there,
specify rotation angle. Let this zero. Then again, asking for input means we
are not getting as expected. Explain the situation. When I select the
object, then enter, then it asks to specify
the rotation angle, not come to input text. Overall, it has many story. Please avoid these mistake. Just focus only three step. First one, PAL. Second one, object selection. Third one click over the screen. Just focus on three step. To get total entities
in text format, we explain what we need exactly and text must
be over the T line mid. Check GPT what we'll do. It will revise Is
per provided input. Now, let this code again copy. Open your order list, remove this one,
paste new one, save. Let this application load
your lisp and close. We will apply again PAL,
just select intervent. Again, we are getting
some problem. It asks you specify height. Again, we will explain. It asks to specify text height, et cetera, error
function canceled. So prompt is pre defining and we are
getting our new code. See. You had to go repeatedly. You had to convince your
problem. Keep patiently. Copy this one, paste it here, remove older one, okay? Same as it is upload,
take this one again. We will see now working or not. Let this PAL just select enter. Some response we are
getting if you see here. And click here to get
your total length. We are successfully
creating our list, but it is still in process. We had to improve.
If you see here, our expectation is on the way. We are getting text
format total length. If you match with list, this is exactly fine. But the problem is it is not detecting arc and color we
are getting yellow color. We need green color. Explain the situation. It works. But the problem is not detecting arc means not giving arc length, but it gives circle P
line length as required. Please also make
text color green and add this arc also
and go patiently. Don't be in a hurry. This is very deep level. Your code is generating. We will see this
part work or not. Okay. Copy the code, remove older one, paste new one. Let this again load application. Now you see here, still
we are not getting. Total length we are getting, arc, we are not getting. Our expectation we must have access every entity for P line, circle, line, but arc
problem we are getting. If you see here, we are getting, but arc is not detecting. There may be the issue
we have to solve. What we will do, let
this experiment. We will take this much arc, now you see here, this
much arc detecting. If you take arc
end to end point, but base point outside, if you see here, if I
will take this arc, the center point we are getting
outside now not working. Total length we are getting
but it's not placing text. We got the problem. Means end to end if we
are getting outside, not work, end to end, base point we are getting
inside, then it work. Same as it is, we had to
explain the situation. Let this PL selector enter means end to end arc
inside, midpoint working. I will explain clearly. See if arc center point
out of the arc line, end to end, then it not work. But if midpoint inside
the arc end to end, then it give the text over
the mid area of the arc. Make this work for both. We explained the situation. Even midpoint
center point we are getting inside arc
or outside arc. Make this work for both. We have explained the situation. What you had to do
just copy this code. For now, let this arc, we will see if end to
end we are getting outside center point,
then it work or not. Let this both open your lisp, remove older one
paste new code, save. Load application, close,
remove these text, apply again, PL, selectal Inter. We have successfully created this list as per
our expectation. Now you see here. But
there was repeated input. It is exactly like life. Success failure depends on time. We didn't succeed
at first input, we try many times. Now, the result is here. This list we have created successfully. This
is just amazing. Must practice these tips, believe me, you will be amazed when you will
make your first list. Yes, must share your experience
in project to gallery. I will attach this
list, take this one. You can customize its
text height, color. You do whatever with this list. We have successfully
created to find total length in text format
for entire object, okay? Do some creative things, take this list, customize, edit, manipulate, do whatever. But master do let me know
what you experience, which list you made for the first that working
perfectly fine. In the same scenario, next chapter also is going
to be more exciting. Just keep learning
and keep watching. We are doing here amazing
5. Create LISP Total Length: Class is connected
with previous class. We will add total length, feet and meter both. Previous one we have
just added meter only. But in this one, we
will add feet also. As we will just experiment. We need only feet. One we will get feet plus meter, and one only feet. Previous one already we
have taken meter, okay. So come to here. At the same time, can you
add length in feet also, I mean it give both like this. Let this XXX meter at the rate, XXXX feet, rest,
same everything, change the command PLF. Okay. And take your code. The previous one, which
one we have made already, total length in meter, that list we are manipulating
feet, meter plus feet. Just copy, paste the
code, let this PLF. Now, let this here, load application, take this one. We are expecting
feet plus meter, PLF, just erectile inter. Ankle here. We are
getting as expected, meter plus feet length,
as you see here. We have manipulated
previous one, which one we are
getting only meter. But we are expecting to have meter plus feet also
in total length. We simply explain our
additional feet scenario and the result is here. As you see same, we will go feet only no meter and feet
both just only feet. Meter feet already covered. We will cover only feet. The short key, we will keep PFT, which is P for plyineFT for
feet, just for the reference. Let this list copy and fourth one we are
just taking as a copy. We will provide our prompt. The code we will paste
here. Let this here. Can you just make this
lisp give only feed? No meter, just feed like this, XXXXfT and restl same
Inter Code is generating, remove your text and
open number four, okay? Which is PFT, copy the
code, remove older one, paste new one, which is PLF, because we have not convinced
change the short key. It's giving previous
1 ft plus meter. What we will do,
we will let this here and keep short key PFT. Now it's revising short key. Before we are getting PLF, which was with meter and feet. Now we are getting PFT, which is polyinFeet
only, total length. Don't be confused. If
you not understand, just revise one time two time. This is just simple simple. Remove older one, paste new one, load application,
select fourth one. Which is PFT, total
length in feet only, and just simply type here, PFT, selectl intervent
and kill here. We have successfully created
total length in feet, total length in meter, total length in feet
and meter both. With repeated input, we have successfully created
these three list that work perfectly fine. Okay, don't be amazed. Take this list, decode, manipulate, change, height,
text style, whatever. But must try to achieve
your first list. This will increase
your willpower and definitely wherever
you are sitting, customize your work and you
can automate small task. This will make you replaceable. You will carry your
list with you only. Must attach your experiment, your practice part
in project gallery. I will definitely see
that part very carefully. Stay tuned. We will explore amazing thing
step by step. Okay.
6. Create LISP Slope Calculation: Problem is simple, how
to find slop percentage. This is very important. Mostly in building slop area, parking slop area, how to
calculate slop percentage. We'll create this list. Length we have, height we have. We don't know how
much slop percentage. We will create first
slop percentage. Let this here hat
GPT Make a list that help to find out slop
percentage in text format. Just by giving
length and height. Give slap percentage. I work when I type SLP, this is short key, then ask
to input length, Inter, then ask to input height, Enter, then ask to click over
the screen to get the slap percentage,
calculated result. But in text format, keep text color green
and text layer also. Layer name slap percentage
and keep text height 40 unit. And please make this list
properly and avoid mistakes, such as bad argument, string P, nill, error function
cancelled, et cetera. This is our prompt
first what you do, just optimize this prompt as per your grade understanding. Then write the code, inter. This is our
comprehensive prompt, even we have request
to optimize. Watch GPD understand well, SLP, percentage,
text height 40 unit. These are the thing
clearly identify. This is our optimized prompt, even text color green, height 40 unit, Layer
slop percentage. This is our code. We will copy this code and paste
this new code. What you do, close and save. You'll see it is working on art. Let this load application and
locate your list this one, load from here, and close. Now, we will see height
and length we have type SLP this we have
given layer created. It asks enter the length. Now, length we know 1,000 unit. Then again, it ask
to the height. Height will give 150 unit. Then again, specify a point, this is working, great. We have created successfully
this list protein, which is working perfectly fine. If you have 1,000 length, 150 height means your
slob percentage is 15. If you see, we are
getting layer also. One more thing we will add here. Let this here. Can you
add one more thing? Like Slop length slop
percentage we have, but height we don't have. I'm just adding one
more thing keep both option like percentage
calculation by height, I should work when I type SLP, then it asks to choose
the result output. Slop percentage for
S or slab height for H, then choose S. Then I ask to input
slob length and height. While if I choose H, then ask to input length
and slow percentage. It give the result accordingly. Say we have added one
more thing, clearly. If we have 4%, then I
will type only four. This is okay. We did
nothing, we have added. If we don't have height, but we have slop
percentage and length, then how we identify height? Let this here. This is
our optimized prompt. What you do only copy the code. Let this copy your code open
this list, remove older one. Paste new one close and save. You'll see it is working
or not for both. Let this part copy,
keep one more here. Same story. Here we
don't have percentage. Here we don't have height. Load application.
Load this one, close. First, we'll find
out percentage. Let this SLP. Now it asks you to choose S for
slab for height. We will choose S for slab. Now input length 1,000 unit, height we have 150 unit
Okay, click over the screen. This is okay. This is working. Same situation, we will see
height we are getting or not. SLP, now type H because
we need height only. Slop length we have. Now input length. 1,000 unit. Again, slob
percentage, 15% here, let this 15 only and kill
here to get your height. Yes. This list
successfully working. This way you can find
out slob height also and slab calculation in percentage perfectly
in just one time. This will let you error free. What we did here, we have successfully explain
our requirement. Our pm working properly to
get this wonderful output. Same as it is, you can customize
text height, text color, and wn you can customize, text is styling as per
your und requirement. Layer base also you can switch simply if you want
to change layer name, you can simply change. We have successfully created
slow percentage calculation
7. Create LISP Arc Circle: Problem is we had to find out radius and total
length in text format. This is our real problem. For any arc circle, we wish to have length and
radius, both in one time. We'll create this list
perfectly using chat GPT. Let this here make
a list that help to find the arc circle, length and radius
in text format. It should work when I type ALR, then asks to select
arc a circle. The nter asks to click over
this screen to get the arc or circle selected length
and radius in text format. Like this, length is
equal to XxtX centimeter and XXR which is radius and keep the text color green
and make layer based. Layer name arc
circle, underscore, length and radius and keep
text height for T scale, and make this list properly
and avoid mistakes, such as string penil
error function canceled, bad argument, et cetera. Just refine this prompt as prior grade understanding,
then write the code. This is our input. Also
we have requested. Just optimize this prompt as prior grade level
understanding. The thing is here we are
getting step by step, AR, select circle or arc
and click over the screen. The output is length is
equal to and radius. Only for arc and circle. What you do, copy this
code, open your list. This is older one.
Just a sample, paste it here. This
is your new code. Close and save. You'll
see it is working or not. Let this upload and
now we will check. Let this ALR. This is our short key,
select arc or circle. I ask to select. Click over the arc
now you see here, we are getting
specify text height. We did mistake. Then again, it as specify rotation angle and then again it
asks to input text. We'll explain situation here. When I click over
the screen to get the calculated result
in text formare, it asks specify height
and text rotation angle, then ask input text, et cetera. I mean, there are many story. I just want only three steps. First A inter, second, select a arc or circle, third, click over the screen
and get the result in text format with green color
and text height 40 unit, and layer base, arc,
circle underscore, length and radius, this
much only, no other input. We again explained
the situation. Now it is again writing. We'll see this one
working or not. What you do, just
copy this code, same as it is, open your list. Remove this one,
paste new one, save. We'll see working or not. Let this upload and
type your short key. Let this ALR layer got created. Click over the arc
and click here. Same as it is. Here we
are some output also. Great. Circle also. We're getting length and radius. Let this one and same as
it is, this one also, and same as it is this one also means it is working
perfectly fine. We will check dimension was. You'll provide
dimension. We'll check this value exact or not. Let this radius. Radius, we are getting
perfectly fine. If you see here,
we are getting as per output text format
radius properly. We'll see arc length. Let this arc length dimension. Here we are facing problem. 1205 we are getting, but here 2082 means
there are story. We are not getting correct
arc length in text output. If you see here. Text output, we are getting different
length for arc. Okay. And for dimension waves, we are getting different length. What we do I check everything
unit dimension style. You will explain chat GPT,
this is the issue we have. The problem is in text
arc length is 1,981.84, but I measure using
arc dimension. The dimension is 1,081.3. Why not the same? Is there
any unit or scale issue? Dimension different
and output different. Text output different getting dimension, we are
getting different. We'll explain here again. Arc length is 1,981.84
in centimeter. But dimension length is 1,081.3. All the things are correct, like unit already in
centimeter. We explained here. Text output arc
length, explain here. Now, it will rewrite again. Now, it got the point. Arc length is equal
to radius into angle. So it got some point. Maybe it is working or
not, we'll check out. What you do, just
copy your code, open your list, paste
it here and save. Now we'll take new one, load application,
select your list, close and check again. ALR. Click over the
arc and click here. Yes, we are getting perfectly
fine if you see here. Length, we are getting
Asper dimension and text also we are getting as per dimension.
We will check out. Let this ALR. Click over the arc and click here
to get your text. If you see here
everything we are getting perfectly fine,
length is equal to, and radius is equal to, means this list protein we have perfectly created
that is working. If you see here, we are
getting layer based also. If you see here, we are
getting dimensions same 1205, 120.59 as you see here. We have successfully
created list that is helping to find out
text base result, including length and radius. If you see here,
if I check radius, we are getting same as it is. Let this break circle
and provide dimension. Now you see here, g, total length of
circle, same as it is as per our output text. The conclusion is we have successfully created
our list protein that help find out total length and radius of arc and circle. I will attach this file below. You can customize text
height, text color, text style, as, as
for your un scale. We have successfully
created our list.
8. Create LISP Text To Layer: These text we have with
different different color. What we want, we want to create a lisp as per this
text into layer, as per this color code, the same text color into layer with active
color as text we have. This is a task we will automate using lisp.
We will make here. Let discharge GPT,
and prompt here, write a lisp that help to create layers as per text color. This list should work
when I type EL YR, then ask to select the
existing text in Autocad. Then ask to enter,
and when I enter, I get the text based
layers as much as selected text I had taken it must have same text in layer, uppercase or lowercase, and
if text had different color, as I said, if text had
different different color, then layer also must have
different different color. As per text, first you
optimize this prompt. This is very important. I
requested to optimize this pm. Then write this list comprehensively and avoid
mistakes like bad arguments, string P, error
function can sealed. These are the simple
bad arguments. Just write perfect lisp. First, chat GPT,
optimize this prompt. After that, our code is here. Now this is our code. What you do, copy
this code, okay. And come to here, take
this list as template. This is blank template
we have paste your code here and simply say, the command we are getting here, TLYR Now what we do
this very carefully. We will see it is
working on art. We want to text into
layer as for color, let this here, maximize Autocad. And what you do type upload, I locate your list
where you have saved Layer name, load, close. What we do, this very carefully. Type TL YR, this
is our short key. If you see here, we are
not getting anything. There is nothing
related to TL YR, you'll take again, is
there any mistake? TL YR, error syntax, we are getting here means
currently this list not work. I will explain problem here. When I upload the list, it say r syntax. I
explain problem. Check GPE, what doing
exactly. It's rewriting. Now, copy the code, open your existing list, remove and paste new
one, close and save. We'll see again it
is working or not. Type upload and
load your new list. Same type TL yR, select R the text. Currently, we do
not have any layer. There is no layer. Tyr, it is getting SelectR inter.
We'll see what happened. Yes, we have successfully
created this list also. If you see here,
as per text color, we are getting color
also for each layer. If you see here,
what we did here, we have simply created
a list that perfectly convert text into layer as per text color
in just one time.