0:00
Hello friends welcome to Free cat
0:01
tutorial and in this tutorial we will
0:03
learn about the cad query workbench
0:06
which is a python based modules to
0:08
create the high quality 3D models so
0:11
here I have already installed the
0:15
and once you install the category
0:17
workbench and activate it you will get
0:19
here the cat query Tab and you will see
0:22
here multiple options like new script
0:25
open script execute script with the help
0:29
with keyboard shortcut so installing
0:31
this category workbench is very easy
0:34
just head over to the tool then add-on
0:39
and search for the cat query here and
0:52
so here is the module and install and
0:55
activate it and restart your free CAD
0:58
so what is this CAD query and what it is
1:01
used we will officially see its give
1:04
GitHub page so basically category is a
1:07
python module for building 3D models and
1:10
using this tool or is using this
1:13
workbench you can write simple script to
1:16
produce high quality models and you can
1:18
visit this GitHub page to get the more
1:20
information about the category workbench
1:24
so in this tutorial we are not going to
1:26
write any custom code
1:29
instead of that we will see some
1:33
script which comes with the category
1:36
workbench so here is the option called
1:40
open script and if I see here there are
1:43
the main script has been already written
1:46
and which you can use as per your
1:48
requirement so for example I wanted to
1:51
create a simple plate
1:55
use this script called Simple block and
2:01
and if you see deep into the code we can
2:04
see that our first line of a command is
2:07
a import category as CQ this means that
2:10
with the help of this command we are
2:13
importing the cat query Library
2:17
we are creating a simple plate so we
2:20
have defined the length height and
2:23
and here if we see that uh CQ means get
2:27
query and work plane is a x y
2:31
and here we have called that the length
2:35
which we have defined here and here is a
2:39
show result so this is the code
2:42
written in a python now we will execute
2:45
it to execute the code go to the
2:48
category Tab and say execute script
2:53
so once you execute the script that
2:55
simple block has a part has been made in
2:59
a free cat now I will say Zoom to fit I
3:03
can say isometric so it has model me
3:07
apart with length height and thickness
3:11
and now if I change anything here for
3:19
so I will go here and use the 2mm and
3:34
and I will go and say execute a script
3:40
parts has been modified
3:44
and if I go here and if I want only one
3:50
then I will go here and then say execute
3:54
so you can see that it has been modified
3:56
to 1mm and if I wanted to make a 10 mm
4:00
thickness then I can do the same
4:08
so this is how we can
4:10
easily make a simple models
4:16
a change in a code and basically we have
4:19
just changed the value
4:21
and now if we go to the open script then
4:24
we can see the many examples here which
4:30
as per your requirement
4:33
now we will go to the model here which
4:38
now if I wanted to give the chamfer to
4:42
all these edges or fill it to all these
4:45
edges and if I select
4:54
and I switched to the part design
5:04
and if I say fill it so what
5:07
error we are getting that create a body
5:10
so this means that this is just a shape
5:15
but still we can use this shapes to
5:20
so the basic idea is that I will create
5:24
a body here and then I will select this
5:28
shape which we have created with the
5:30
with the help of this python script now
5:32
we will drop it over the body now you
5:36
can see that this has been
5:39
comma as the base features and now if I
5:43
try to fill it this edges
5:59
and I will say okay now I can save this
6:18
all the windows and now I will open my
6:22
here now this this having no any
6:26
dependency with the cad query now it is
6:30
a independent model now I can do
6:32
whatever I can do with this part
6:43
so you can see that the shape
6:46
and now this we have imported a base
6:52
card now we will see some other quotes
7:00
now I will go to the open script
7:03
now here I will say uh block with board
7:13
and here we can see that it is a plate
7:17
length height sensor thickness Center
7:24
it is made on a x y plane length height
7:30
now we will execute this code and we
7:32
will see what happens
7:34
so once we have executed the code we
7:37
have got our model here
7:44
which we can see here
7:48
we can see here the 80 60 10 and whole
7:54
and for example I wanted to change this
8:03
and I will say execute script
8:06
so you can see that holder has been
8:09
similarly I can change length height and
8:12
thickness thickness suppose that I want
8:19
so you can see that it has been
8:23
changed now same way as we have did in
8:27
part we can go to the part design
8:30
workbench and create a body and we can
8:33
use this shape inside the body and now
8:36
we can do anything either we want I want
8:39
to adapt the whole affiliate chamfer
8:41
whatever with this part
8:44
so this category workbench is very time
8:47
saving to create the simple Parts in
8:49
fact if we visit to the
8:53
category Library we can also see some
8:56
complex example of the script
9:06
block with counter bore holes
9:10
now I will close this one
9:18
and I will execute the script
9:24
and I will say Zoom to fit
9:29
so now you can see that
9:32
now it is a plate with a four countable
9:35
holes and one hole at the center
9:38
and understanding the category code is a
9:42
very simple because it is a very simple
9:44
script so here is the length Heights and
9:47
thickness whole die a whole
9:49
Contour board hold Ayah
9:58
and here is the positions length
10:05
so let's see the an example of uh
10:14
if I on my plane here
10:19
sorry it is a shape so
10:22
I will go here and say
10:30
and I will execute the script
10:35
so the part is failing
10:50
okay so you have to Deep dive into the
10:53
code and now if you are changing the
10:55
work planes here then you have to uh
10:58
change this one with respect to
11:05
but I am not going into the depth of
11:09
once you start making some simple script
11:12
or simple part with the help of a query
11:15
then you will understand that how to
11:19
and now we will see some more example
11:23
now we will move to the open script
11:27
now here we can see one example of the
11:31
this bottle and I will say okay
11:36
so we can see that here is a
11:41
set of the length height and thickness
11:45
and now we will simply execute it
11:54
so you can see that a bottle has been
11:57
but you have to Deep dive into the code
11:59
if you are not to change anything on the
12:00
code but if you are not to make any
12:05
then you can just simply run the query
12:09
and you can just create a shape and then
12:11
go to the part design workbench and
12:18
and now you can do anything with this
12:22
so this category workbench is very time
12:26
with the help of this ready-made script
12:32
and when you study all this script when
12:36
you run this script in a free CAD you
12:38
will get the more idea about it
12:47
so this is all about this tutorial and
12:49
how to use the cat query python models
12:52
to create a simple 3D models in fact the
12:56
complex model also if we are good in a
12:59
programming then you can play with this
13:06
so this is all about this tutorial I
13:08
hope you have liked this tutorial and if
13:11
you like my method of teaching then you
13:16
please visit the video description links
13:18
I will come with more useful tutorial on
13:21
a free cat thank you for watching and
13:23
thank you for your valuable time