0:00
Hello friends welcome to free cat tutorial and in this tutorial we will
0:03
learn about the cat query workbench which is a python based model to create
0:08
the high quality 3d models. So here I have already installed the cat query
0:14
workbench and once you install the cat query workbench and activate it you will
0:19
get here the cat query tab and you will see here multiple options like new script
0:24
open script execute script with the help with keyboard shortcut so installing this
0:31
cat query workbench is very easy just head over to the tool then add-on manager
0:36
and search for the cat query here and install it So here is the module and install and activate it and restart your free CAD
0:58
So what is this CAD query and what it is used we will officially see its github page
1:05
So basically cat query is a python module for building 3D models and using this tool
1:12
or using this workbench you can write simple script to produce high quality models and
1:18
you can visit this github page to get the more information about the cat query workbench
1:24
So in this tutorial we are not going to write any custom code
1:29
of that we will see some standard script which comes with the cat query workbench so here
1:39
is a option called open script and if I see here there are the many script has been already
1:45
written and which you can use as per your requirement so for example I want to create
1:51
a simple plate so I will use this script called simple block and I will say ok and if you see
2:02
deep into the code we can see that our first line of a command is a import cat query as CQ this
2:09
means that with the help of this command we are importing the cat query library and here we are
2:18
creating a simple plate so we have defined the length height and thickness
2:22
and here if you see that CQ means cat query and work plane is a XY and here we
2:32
have called at the length height and thickness which we have a defined here
2:37
and here is a show result so this is the code written in a Python now we will
2:44
execute it to execute the code go to the cat query tab and say execute script so
2:53
once you execute the script that simple block has a part has been made in a free
2:59
cat now I will say zoom to fit I can say isometric so it has modeled me a part
3:07
with length height and thickness and now if I change anything here for example I
3:15
want to thickness of 2mm so I will go here and you the 2 mm and length I want 100 and
3:27
width I want 50 and I will go and say execute a script so you can see that the
3:40
parts has been modified and if I go here and if I want only 1 mm thickness then I
3:50
will go here and I say execute a script so you can see that it has been modified
3:56
to 1 mm and if I wanted to make a 10 mm thickness then I can do the same so
4:06
So this is the 10mm. So this is how we can easily make simple models with the help of a change in code and basically
4:18
we have just changed the value. And now if we go to the open script then we can see the many examples here which you can
4:28
use as per your requirement. Now we will go to the model here which we have created here
4:38
Now if I want to give the chamfer to all these edges or fillet to all these edges and if
4:45
I select this edges all four edges and I switch to the part design workbench
5:03
and if I say fill it so what error we are getting that create a body so this
5:10
means that this is just a shape it is not a body but still we can use this
5:17
shapes to modify our part so the basic idea is that I will create a body here
5:25
and then I will select this shape which we have created with with the help of
5:30
this Python script now we will drop it over the body now you can see that this
5:37
has been come as a base features and now if I try to fillet this edges
5:55
I can fillet it and I will say okay now I can save this part
6:04
cat query as r2 and now if I close this all the windows and now I will open my
6:21
part here now this this having no any dependency with the cat query now it is
6:30
an independent model now I can do whatever I can do with this part
6:42
so you can see that the shape and now this we have imported a base
6:48
discard now we will see some other quotes of the cat query now I will go to the open script now
7:04
here I will say block with bored center hole I will say ok and here we can see
7:15
that it is a plate length height and thickness center dia 22 and it is a made
7:25
on a xy plane length height and thickness now we will execute this code
7:32
and we will see what happens so once we have executed the code we have got our
7:38
model here so this is the hole which we can see here we can see here the 80 60
7:51
10 and hole dia 22 and for example I want to change this hole dia from 20 to
8:00
10 and I will say execute script so you can see that hold I has been shorter
8:08
similarly I can change length height and thickness thickness suppose that I want
8:14
to give 2 mm so you can see that it has been changed now same way as we have
8:25
did in our last part we can go to the part design workbench and create a body
8:32
and we can use this shape inside the body and now we can do anything either we
8:38
want I want to adapt the whole fillet chamfer whatever with this part so this
8:44
cat query workbench is very time-saving to create the simple parts in fact if we
8:50
visit to the category library we can also see some complex example of the
8:58
script for example block with counter boreholes now I will close this one
9:13
and I will execute the script and I will say zoom to fit so now you can see that now it
9:33
is a plate with four counter bore holes and one hole at the center and understanding the
9:40
cat query code is very simple because it is a very simple script
9:44
so here is the length, height, thickness, hole dia counter bore hole dia depth
9:53
and here is the plane and here is the positions length and height so let see the an example of changing the plane so if I say if we if I on my plane here sorry it is a shape so
10:21
So I will go here and say yz and I will execute the script
10:35
So the part is failing
10:50
So you have to deep dive into the code and now if you are changing the work plane here then you have to
10:58
change this one with respect to Z X But I'm not going into the depth of this
11:09
Once you start making some simple script or simple part with the help of a query
11:14
Then you will understand that how to play with the code and and now we will see some more example now we will move to the open script now
11:27
here we can see one example of the this bottle and I will say okay so we can see
11:37
that here is a set up the length height and thickness and now we will simply
11:46
executed so you can see that a bottle has been made but you have to deep dive
11:58
into the code if you are not to change anything on the code but if you are not
12:02
to make any similar models then you can just simply run the query and you can
12:09
just create a shape and then go to the part design workbench and create a body
12:14
and and now you can do anything with the this part so this CAD query workbench is
12:23
very time-saving with the help of this ready-made script here and when you
12:34
study all this script when you run this script in a free CAD you will get the
12:38
more idea about it so this is all about this tutorial and how to use the cat query python modules to create
12:53
a simple 3d modules in fact the complex model also if you are a good in a programming then
12:59
you can play with this cat queries workbench so this is all about this tutorial I hope
13:08
you have liked this tutorial and if you like my method of teaching then you can support
13:13
me please visit the video description links I will come with more useful tutorial on a
13:20
free cat thank you for watching and thank you for your valuable time