0:00
Hello friends welcome to fre tutorial
0:02
and in this tutorial we will learn how
0:05
we can measure area volume and center of
0:08
mass with a python script you can also
0:11
visit my website Mech nexus.com where I
0:15
write articles and tutorials on freead
0:18
you can download my tutorial source file
0:21
from here tutorial source file page and
0:24
you can also support me by buying a cup
0:29
of coffee on kofi.com your uh small
0:33
support will help these channels to grow
0:35
and it will motivate me to create more
0:38
awesome content on fread I thanks to all
0:42
my supporter those who have supported me
0:47
coffee so keep supporting and uh it will
0:52
help me to grow this Channel and it will
0:56
motivate me to create more awesome and
0:58
useful tutorial on freeat so let's come
1:03
tutorial so here we have the part and we
1:11
script get a center of mass volume and
1:15
area so first thing here is our main
1:19
command First Command we will run this
1:22
and after that we will run all three
1:25
commands to know the area volume and
1:27
mass so here Target object object app do
1:32
active document get object by label so
1:35
in my case my part label is body you can
1:40
know your label of part so click on your
1:45
body here and here is a label is body
1:49
that's why I have given my label name
1:55
here so you have to give your name or of
2:00
your part the name which you have given
2:05
here and now to run the python script in
2:09
freeat all you have to do is right click
2:12
it and activate this python console so
2:16
once you activate this python
2:18
console it will open the python console
2:21
and you can also arrange it as your
2:25
desired location at left hand side or
2:28
right hand side so here is my first
2:31
command so instead of a typing here I
2:35
this and uh paste and give the enter so
2:40
you can see that I did not get any error
2:44
because my part has been identified here
2:48
by Body which I have shown you now let's
2:56
area Target object shape do area so I
3:00
simply copy this command and paste it
3:05
here and press the enter so here is the
3:08
area so depends upon uh unit you have a
3:13
set for your freeat you will get the
3:17
value here let's run the second command
3:20
which is a targetobject do shape.
3:26
volume I will copy it
3:30
paste it and enter it so here I got the
3:34
volume and now third is a center of mass
3:38
which is a target uncore object do shape
3:43
mass I will just copy it and paste it
3:48
and press the enter so here I have got a
3:51
center of mass in a X Y and Z
3:56
Direction so these are the
4:00
script to measure the area volume and
4:04
mass with the help of a python script I
4:07
will provide this script so that you can
4:09
save this script in a notepad and you
4:13
can run it the important Point here is
4:17
label never forget to replace your label
4:23
name with my label name okay if this
4:27
command does not execute your first
4:29
command then this you cannot run this
4:32
because this First Command Target our
4:36
object which is body if bodies not get
4:39
identified with this python script then
4:42
three commands will not get run so here
4:45
you can see that uh I have a measure
4:50
shape area shape volume and shape Center
4:54
of mass so you can simply copy it and
4:57
you can send your client or you can and
5:00
save it in a notepad of the area volume
5:02
and center of mass so this is all about
5:06
how to measure area volume and center of
5:08
mass with a python script thank you for
5:11
watching and thank you for your valuable