Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
37 views24 pages

QUESTION 1: Practicing Basic Commands of Pro/E

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 24

QUESTION 1: Practicing basic commands of Pro/E

The first step in Pro/E is to select an axis and sketch one of the views. After finalizing one view further
actions can be taken on the model.

In sketch mode the various tools/ commands available are:

1) LINE TOOL

It helps us to create a line and has the following options:

i) 2 point lines
ii) Line tangent to two entities
iii) 2 point centerline

2) RECTANGLE TOOL

It helps to draw a rectangle.

3) CIRCLE TOOL

It is used to create circles and has th following options:

i) Circle by center and point on circle


ii) Create concentric circle
iii) 3 point circle
iv) Tri tangent circle
v) Full ellipse

4) ARC TOOL

It is used to create arc or segment of a circle and offers the following options:

i) 3 point arc
ii) Concentric arc
iii) Arc by center and end points
iv) Arc tangent to 3 entities
v) Conic arc

5) FILLET TOOL

It helps us to create a fillet between two entities and offers the following options:

i) Circular fillet between 2 entities


ii) Elliptical fillet between two entities
6) SPLINE CURVE TOOL

It helps us create a spline curve which is a curve passing through a number of control points.

7) Co-ordinate TOOL

It helps us deal with the coordinates and has the following options:

i) Create point
ii) Create a reference coordinate system

8) Dimension Tool

It helps us arbitrarily create defining dimensions.

9) Modify values tool

It helps us modify the values of dimensions, geometry of splines or text entities.

10) Constraint tool

It helps us impose sketcher constraints on selected section

11) Trim Tool

It helps us trim entities an offers the following options :

i) Dynamically trim section entities


ii) Trim entities (cut or extended) to other entities
iii) Divide an entity at the point of selection
iv) Quick trim

12) DATUM TOOL

These are used for creation of new datum entities

i) Datum plane tool


ii) Datum axis tool
iii) Insert a datum curve tool
iv) Datum point tool
v) Datum coordinate system tool
After exiting the sketcher following commands are available:

13) EXTRUDE TOOL

It helps extrude an entity or in other words extend the view in a direction normal to the view to
create a solid model.

14) REVOLVE TOOL

It helps us create solid by rotating a surface around a defined axis.

15) Variable section sweep tool

It helps us create a solid section joining two surfaces of unequal dimensions or geometry.

16) Boundary Blend Tool

It helps us produce a smooth boundary.

17) MIRROR TOOL

It helps us produce mirror image of a given entity.

18) TRIM TOOL

It helps us to dynamically trim solid entities.

19) PATTERN TOOL

It helps us create a pattern of a selected feature such as a hole.

20) SHELL TOOL

It helps us create a solid by thickening a surface entity.

21) HOLE TOOL

It helps us create a hole in a solid object.

22) RIB TOOL

It is used to quickly create ribs which join two entities by filling the gap between a line and a
solid with a thick surface.

23) ROUND TOOL

It is used to round the edges of a solid entity.


QUESTION 2:

1) Choose File->new->solid model->ok

2) Select front plane->sketch. Draw a circle of dia 104 on the origin and another circle with dia = 48
with center along x-axis at.

3) Draw the other parts of the profile given.->click ok.

4) Select the drawn sketch-> extrude->enter dimension as 20mm->ok.


QUESTION 3:

1) Select front plane->sketch.

2) Select line->draw a line of 150 units->draw another line at 60⁰ to this line of any length. Draw
another horizontal line at an offset of 60 units from the first line intersecting the second line.
From the origin draw a horizontal line to the left of length 265 units through the intersection
point. Trim off excess line parts. Draw another line from the end point of this line at an angle of
60⁰. Draw the arc and join the final line and trim off excess line parts.

3) Select mirror tool and select Y- axis as the mirror axis. Click ok.

4) Exit sketcher by clicking ok.

5) Choose extrude->entre dimension as 200 units.


QUESTION 4:

1) Draw two concentric circles of φ=2 and φ=4 at the origin.

2) Draw a line starting 7 units below origin, move 2.5 units to left, move 0.8 down, move left
0.8 units and move up 3 units.

3) Draw an arc tangent to the outer circle starting at the upper end point of line figure and
radius=6 units

4) Draw a centerline on y-axis.

5) Select the lines and the arc , select mirror and select the center line.

6) Choose dynamically thin entities and click on the sections of the circle to trim

7) Continue with the section.

8) Extrude by 20units.
Question 5:

1) Draw an arbitrary figure starting the line segment at the origin moving right and then
drawing a line at about 100⁰ to it upwards.

2) Set the angle explicitly to 100⁰.

3) Select create circular fillet between two line segments and select the two line segments
and select the two line segments , set the arc radius explicitly to 45 units.

4) Set the bottom line segment length to 28 units.

5) Draw a vertical line 105 units away from origin cutting the figure.

6) Trim the extra entities. Draw a centerline on y axis.

7) Continue with selection.

8) Select revolve-> revolve as solid->angle=360⁰ and thickness = 5units. It will produce the
desired shape.
Question 6:

 DESIGN STEPS :
A)
1) Choose New->Part->Solid. Uncheck ‘use default template’ -> Ok->choose mmns_part_solid->ok.
2) Choose the front plane and click Sketch.
3) As the origin select the intersection of the axis and top surface.
4) Create half sketch of the profile as shown in section B-B.
5) Choose centerline, then choose the origin and create a vertical axis.
6) Click ok to indicate completion of sketch.
7) In the 3D window, select the sketch and click revolve->ok.

B) Flange Design
1) Choose axis->select the top surface and pressing control, select right plane->ok.
2) Choose Datum plane->select right plane , press ctrl, select axis ‘A3’ created earlier->specify angle of
rotation as 21.5⁰ -> ok.
3) Choose Datum plane ->select created plane DTM 1->specify offset as 10 mm.
4) Sketch->DTM 2. If asked for references choose required references.
5) With proper dimensioning sketch the section of the flange. Create a horizontal axis through the center of the
flange. Click ok.
6) Select the flange sketch->extrude->options-side1->to selected->select the conical surface->ok.
7) Choose hole->placement->choose top surface and flange axis->specify dia of hole->options->’to selected’-
>select internal surface of cone->ok
8) For coupling holes->hole->select top surface of flange->offset references->choose axis A4 and a% to
position to axis of 1 hole->click ok. Choose pattern=>axis->choose A5->specify angle as 90⁰ and o. of
instances as 4.
9) Follow a similar process for other flange.

C) For the base holes, follow a similar procedure as in II (8).


QUESTION 7 :

I) Main Body : New->part->mmns_part_solid->ok->front plane-> sketch

1) With center of the circle of the vertical support as original, create a cross section (side view of the base
part) - click ok

2) Choose Extrude->options->symmetric->specify dimension ‘72’

3) Use the round tool to fillet the four vertical edges of the base to required radius.

4) Choose front plane->sketch->create the vertical support with a circle symmetrically->click ok->symmetric
extrude-> specify required width as ‘36’.

II) Creating the support ribs

1) Select right plane->sketch->create the line or directional profile that defines the rib; For the right rib
create a line, select tangency constraint between the lines and the circular parts->also select co-incidence
between these parts->exit sketcher by clicking ok.

2) Select profile rib->select Created line ->choose appropriate direction of arrow->specify the width of rib as
‘18’-> click ok.

3) Similarly create the other rib.

III) Material removal

1) Select the top surface of the base->sketch->create the two holes and the rectangle for material removal ->
click ok

2) Choose extrude->remove material , Select created sketch->options->up to surface->select the lower surface
of the base->click ok.
QUESTION 8:

I) Creating the base parts->new ->part->solid->mmns_part_solid->ok

1) Create the conical part in a sketch in the right plane. It consists of a cylindrical part and a conical part->the
base radius of cone is as specified. Create a vertical axis through the origin->click ok

2) Choose revolve and select the sketch->click ok->Base is created.

3) Now to create the flat bas create a datum plane. Choose top surface of part->datum plane->offset ‘73mm’
below top->ok.

4) On the newly created plane, create the section of the horizontal base leaving a central hole of diameter-
base diameter of cone-> click ok.

5) Extrude this sketch upward-> dimension ‘10’ -> ok.

6) Provide required fillets.

II) Helical sweep for thread : -> front plane->sketch

1) Create the side view of the path to be followed by the thread

2) Insert->sweep->helical Sweep->cut

i) Attributes :choose left hand/right hand->click done


ii) Sweep Profile: Select the line created earlier which decides the length of thread - make sure it coincides
with the inside dia of cylindrical parts
iii) Pitch: 3mm
iv) Section: make a square of 1.5mm x 1.5 mm at the starting point
v) Material side: Choose appropriate direction

III) Holes

1) Create 1 hole on the top surface->pattern 9 holes

2) Create 1 hole on the cylindrical surface->pattern 6 holes.

3) Create the base holes using ‘material remove’ extrude


QUESTION 9:

I) Creating the tubular section

1) Choose right plane->sketch->draw the circular profile according to dimensions given. Create an axis a
distance equal to the radius of the tubular section->click ok

2) Click on revolve->options->choose angle as 90⁰->click->ok

3) Create the circular flanges to either ends of the pipe created.

II) Creating the extruded pipe

1) Create a datum plane at an offset of 165 mm from the end of the pipe.

2) Select the datum plane->sketch->create the profile of the extruded pipe ( φ 20 & φ50)->ok

3) Select the created profile->Extrude ->options->up to next->ok

4) Create the hole of the pipe according to given dimensions.


QUESTION 10 => ASSEMBLY OF PARTS

Steps: It is assumed that the parts have already been created)

1) New-> Assembly->design->ok

2) Insert all the components by choosing insert->component->assemble.

Assembly:

1) Choose the largest part. On its constraints->choose fixed.

2) To assemble the curved fitting mate the curved surface, the flat horizontal surfaces and one outside surface
with the flat vertical surface of the fixed base.

3) To assemble the washer, align the axes of the 2 holes of the washer with the axes of the two holes of the
base part. Mate the 2 surfaces.

4) To assemble the nuts and bolts -> align the axes of the nuts and bolts with the axes of the holes and mate
the required surfaces.
Q11. Implementation of DDA algorithm for drawing a line.

->
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>

#include<graphics.h>
#include<dos.h>
#include<iostream.h>

#include<math.h>
void DD_Line(int x1,int y1,int x2,int y2);

int round (double);

void main(void)
{
int x1,x2,y1,y2,maxx,maxy;

maxx=getmaxx();
maxy=getmaxy();

cout<<"Enter the coordinates of first point (X1,Y1) :->";

cin>>x1>>y1;
cout<<"Enter the coordinates of second point (X2,Y2) :->";
cin>>x2>>y2;

int driver=9,mode=2;
initgraph(&driver,&mode,"C:\\TC\\BGI");
outtextxy(250,10,"DD_Line Algo");
DD_Line(x1,y1,x2,y2);
rectangle(0,0,getmaxx(),getmaxy());

getch();
cleardevice();
getch();
closegraph();
}
void DD_Line(int x1,int y1,int x2,int y2)
{

float dx,dy,y,m,x;
int xtra1,xtra2,mark=2;
if(x1>x2)

{
xtra1=y1;y1=y2;y2=xtra1;
xtra2=x1;x1=x2;x2=xtra2;
printf("%d %d %d %d",x1,y1,x2,y2);
}

dx=x2-x1;

dy=y2-y1;
if (fabs(dx)>fabs(dy))
{

m=dy/dx;

y=y1;
for(x=x1;x<x2;x++)

{
putpixel(x,round(y),mark);
y=y+m;mark=5;
}
}

else
{
m=dx/dy;
x=x1;mark=3;
if(y1<y2)
{
for(y=y1;y<y2;y++)

{
putpixel(round(x),y,mark);
x=x+m;mark=6;
}
}
else
{

for(y=y1;y>y2;y--)
{

putpixel(round(x),y,mark);
x=x-m;mark=6;
}

}
}
}
int round(double y)
{

double fraction,integer;

fraction=modf(y,&integer);
if(fraction>=0.5)
return ((int)integer+1);

else

return ((int)integer);
}
Q12. Implementation of Bresenham’s algorithm for drawing line.

->
#include<conio.h>

#include<stdio.h>
#include<stdlib.h>
#include<graphics.h>

#include<dos.h>
#include<iostream.h>
#include<math.h>

void bres(int x1,int y1,int x2,int y2,int=6);

int round (double);

void main(void)
{

int x1,y1,x2,y2;

cout<<"\n\nEnter the coordinates of first point (x1,y1):->";

cin>>x1>>y1;
cout<<"\n\nEnter the coordinates of second point (x2,y2):->";

cin>>x2>>y2;

int driver=9,mode=2;
initgraph(&driver,&mode,"C:\\TC\\BGI");

outtextxy(250,10,"Bresenham's Line Algo");


bres(x1,y1,x2,y2);
rectangle(0,0,getmaxx(),getmaxy());
getch();
closegraph();
}

int round(double y)
{
double fraction,integer;
fraction=modf(y,&integer);
if(fraction>=0.5)
return ((int)integer+1);

else
return ((int)integer);
}

void bres(int x1,int y1,int x2,int y2,int col)


{
int x,y,dx,dy,e_inc=0,e_no=0,e=0;
y=y1;
dx=x2-x1;

dy=y2-y1;

e_no=dy+dy;
e=e_no-dx;
e_inc=e-dx;

for(x=x1;x<x2;x++)

{
putpixel(x,y,col);

if(e<0)
{e=e+e_no;}
else
{

y=y+1;
e=e+e_inc;
}
}
}
Q13. Draw a circle using midpoint circle algorithm.

->
#include<iostream.h>
#include<conio.h>
#include<math.h>
#include<graphics.h>
void plotpoints(int xc,int yc,int x,int y)
{
putpixel(xc+x,yc+y,15);
putpixel(xc-x,yc+y,15);
putpixel(xc+x,yc-y,15);
putpixel(xc-x,yc-y,15);
putpixel(xc+y,yc+x,15);
putpixel(xc-y,yc+x,15);
putpixel(xc+y,yc-x,15);
putpixel(xc-y,yc-x,15);
}
void circlemid(int xc,int yc,int r)
{
int p,x,y;
x=0;
y=r;
plotpoints(xc,yc,x,y);
p=1-r;
while(x<y)
{
x++;
if(p<0)
p=p+2*x+1;
else
{
p=p+2*(x-y)+1;
y--;
}
plotpoints(xc,yc,x,y);
}
}
void main()
{
clrscr();
int xc,yc,r;
int gdriver,gmode;
gdriver=DETECT;
initgraph(&gdriver,&gmode,"c:\\tc\\bgi");
textcolor(RED);
cout<<"enter the center and radius:";
cin>>xc>>yc>>r;
setcolor(4);
circlemid(xc,yc,r);
getch();
}
Q14. Implementation of Cohen Sutherland line clipping algo to clip the line outside window
boundary.

->
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>

#include <graphics.h>
#define MAX 20

enum { TOP = 0x1, BOTTOM = 0x2, RIGHT = 0x4, LEFT = 0x8 };

enum { FALSE, TRUE };

typedef unsigned int outcode;

outcode compute_outcode(int x, int y,


int xmin, int ymin, int xmax, int ymax)

outcode oc = 0;

if (y > ymax)
oc |= TOP;
else if (y < ymin)

oc |= BOTTOM;

if (x > xmax)
oc |= RIGHT;
else if (x < xmin)
oc |= LEFT;

return oc;
}

void cohen_sutherland (double x1, double y1, double x2, double y2,
double xmin, double ymin, double xmax, double ymax)
{
int accept;

int done;
outcode outcode1, outcode2;

accept = FALSE;
done = FALSE;

outcode1 = compute_outcode (x1, y1, xmin, ymin, xmax, ymax);


outcode2 = compute_outcode (x2, y2, xmin, ymin, xmax, ymax);

do

{
if (outcode1 == 0 && outcode2 == 0)
{

accept = TRUE;

done = TRUE;
}

else if (outcode1 & outcode2)


{
done = TRUE;
}
else

{
double x, y;
int outcode_ex = outcode1 ? outcode1 : outcode2;
if (outcode_ex & TOP)
{
x = x1 + (x2 - x1) * (ymax - y1) / (y2 - y1);
y = ymax;

else if (outcode_ex & BOTTOM)


{
x = x1 + (x2 - x1) * (ymin - y1) / (y2 - y1);
y = ymin;
}

else if (outcode_ex & RIGHT)


{

y = y1 + (y2 - y1) * (xmax - x1) / (x2 - x1);


x = xmax;
}

else
{
y = y1 + (y2 - y1) * (xmin - x1) / (x2 - x1);
x = xmin;
}

if (outcode_ex == outcode1)

{
x1 = x;
y1 = y;

outcode1 = compute_outcode (x1, y1, xmin, ymin, xmax, ymax);

}
else

{
x2 = x;
y2 = y;
outcode2 = compute_outcode (x2, y2, xmin, ymin, xmax, ymax);
}

}
} while (done == FALSE);

if (accept == TRUE)
line (x1, y1, x2, y2);
}

void main()
{
int n;
int i, j;
int ln[MAX][4];

int clip[4];
int gd = DETECT, gm;

printf ("Enter the number of lines to be clipped");


scanf ("%d", &n);

printf ("Enter the x- and y-coordinates of the line-endpoints:\n");


for (i=0; i<n; i++)
for (j=0; j<4; j++)
scanf ("%d", &ln[i][j]);

printf ("Enter the x- and y-coordinates of the left-top and right-");


printf ("bottom corners\nof the clip window:\n");
for (i=0; i<4; i++)

scanf ("%d", &clip[i]);

initgraph (&gd, &gm, "c:\\tc\\bgi");

rectangle (clip[0], clip[1], clip[2], clip[3]);


for (i=0; i<n; i++)
line (ln[i][0], ln[i][1], ln[i][2], ln[i][3]);
getch();

cleardevice();
rectangle (clip[0], clip[1], clip[2], clip[3]);
for (i=0; i<n; i++)
{
cohen_sutherland (ln[i][0], ln[i][1], ln[i][2], ln[i][3],
clip[0], clip[1], clip[2], clip[3]);
getch();

}
closegraph();
}

You might also like