Author Archives: Mr. M

Fillet and Shell

Units : MM

Step 1) Inscribed Triangle . Dimensioned to 22. Centered at origin

inscribed triangle

Step 2)  Make 1 vertex of triangle vertical with the origin. This will define the shape

inscribed triangle 2

Step 3)  This is what your shape should now look like :

inscribed triangle 3

Step 4) Use the scissor tool to delete the top 3rd of the circle

inscribed triangle 4

Step 5) Connect the 2 points (make sure it’s defined)

inscribed triangle 5

 

Step 6) Perform 2 extrudes (25 and 35). :

inscribed triangle 6

Step 7)  Fillet as shown:

inscribed triangle 7

Step 8)   Add a shell:

inscribed triangle 8

 

Step 9)  Final product:

inscribed triangle 9

Extrude Fillet Chamfer

Workspace Units: MM

Step 1) Create a new sketch on the front plan and create the following sketch. All share centered at the origin:

dimensioned shape

(Click image to enlarge)

Step 2) Extrude 1:

extrude 1

Step 3) If sketch 1 is hidden, make sure to show it

Step 4) Extrude 2:

extrude 2

Step 5)Fillet :

fillet1

Step 6) Add a chamfer:

chamfer

Result

extrude-fillet-chamfer

Variable in onShape Do Now

 

Step 1) Create a 25, 30  , 40 and 42 MM circles all centered at the orig

multi-coincidental

Step 2) Add a single circle on the right that has a radius of 35.

multi-coincidental3

 

Step 3) connect centers with construction line. Make sure that the blue lines are coincidental to the circles

multi-coincidental4

tip: if you draw a line , you can use the ‘q’ button to change it to a construction line!

Step 4) Make the blue lines symmetric to the construction line and at a 9 degree angle

multi-coincidental5

Step 5) The center of the circles should be dimensioned to 44:

multi-coincidental6

Step 6)  Each part of the circle on the left should be an extrude. The outermost starts at 10MM, then 15MM, 20, 25 MM:

multi-coincidental7

Step 7) Connect the two end circles with a 2 MM extrude. The right side is 25 MM:

multi-coincidental9

 

 

Step 8)create the variable as shown below:fillet-amount

Step 9)  Add a fillet to all the circles edges. Set its amount to the variable len as shown. This video shows you how to use a variable and then change the variable:

vriable-for-fillet-val

 

 

Angle, Symmetric, FIllet practice

Set document to MM

Step 1) Make a circle, centered at origin with a diameter of 30. Then create a circle with a diameter of 20 to its right.

twocircles1

Step 2)  Connect the 2 circles with 2 lines coincident on to both circles. You should see the highlighted constraints when you mouseover either of them:

twocircles2

Step 3) Dimention the angle between the 2 lines to be 12 degrees. Make sure it’s the ANGLE , not the distance. If you’re not sure how to do that, watch this short animation.

twocircles12 degrees

Step 4) Create a construction line connecting centers, then make the two lines symmetric to that line:

symmetric

Step 5) Add the 2 dimensions shown . The shape should now be fully defined (all black)

twocircles4

 

Step 6) Extrude the middle part by 15 . Symmetric extrude and then add a 1 MM Fillet:

extrude and fillet

 

Step 7) Extrude th e2 circle by 30 MM (no pic. You should be able to do this on your own)

Angles w Fillet

Workspace Units: MM, use the front plane

Step 1) Create 2 line segments, centered at the origin (as always) and dimension them to 10 MM each

10MM each

step 2)  These should be angled at 45 degrees

45degree angle

Step 3) Add a 12 and 9 MM segments :

12 and 9 segments

Step 4)  Dimension the 2 angles to 140:

140each

step 5) Connect with a tangent arc

connectwtangentarc

Step 6)  Add a 5 MM symmetric extrude

5mmsymmetric

Step 7)  Fillet the Edge of Extrude 1 in these 3 places:

filletasshown

Step 8)  Final Filletted version:

final-filleted-version

 

 

Lines and Angles and Symmetric Extrude

Step 1) Open up a new document.

Step 2) Create a line of length 2 from the origin and line of length 3 from the origin; something like . Their exact angle doesn’t matter, just something like :

2lines

Step 3) Create a 45 degree angle between the 2 line segments:

how-to-do-angle

Step 4) Connect the end points with a tangent arc:

tangent-arc

Step 5) Dimension the center of that arc with the point of top line as shown:

tangent-arc-dimensioned

Step 6) Create an inscribed circle as shown :

inscribed-circle

Step 7)  Create a symmetric extrudesymmetric-extrude2

Step 8) Finished product. Notice how the symmetric extrude goes up and goes down:

symmetric-extrude

Advanced Parts Design Tips I

Step 1)

lines should be larger on right side

tip_1

Step 2) Make the blue lines symmetric to the construction line

tip_2

Step 3)  Click on the top line and construction and dimension the 1.5 degree angle

tip_3

Step 4)  dimension the 2 left side points to 1.5

tip_4

Step 5) Resulting picture :

tip_5

 

Array Fun 2 [2025]

Complete all the methods below. When you are done, copy and paste the    testmethods.v5.1  into your class and run it to see if you have any obvious errors.  The above code does not guarantee you a 100 but will help catch most of the common errors that students make.

Note: You may not use any external libraries (like Java.Arrays etc )or import any code. Everything can be done with just loops and variables.

int sumEveryN(int[] nums, int n)

Description:This method returns the sum of every  n  elements of nums ..

Method Call return value/output
sumEveryN( {1 , 2 , 3 , 4 }, 2 ) 4( ie 1 +3)
sumEveryN( {13 , 42, 15, 33 , 44 , 16 , 52} ,3) 98 ( ie 13 + 33+ 52)

String[] doubleArr(String[] strs)

Description: This method returns a new version of strs  in which each element now appears twice. This can be done with a for-each loop, which I believe is easier and more intuitive.

Method Call return value/output
doubleArr( {“a”,”b”,”c”} ) {“a”,”a”,”b”,”b”, “c” , “c”}
doubleArr( {“math”,”ware”,”house”,”.com” }) {“math”,”math”,”ware”,”ware”,”house”,”house”,”.com”, “.com”}

int  indexOf5(int[] nums )

Description:This returns the index of the first occurrence element 5  or -1 if 5 does not appear anywhere in the array.

Method Call return value/output
indexOf5( { 2 , 3 , 5 , 4 } ) 2
indexOf5( { 2 , 3 , 5 , 4, 5  } ) 2
indexOf5( { 2 , 3 ,7  , 4, 3,   } ) -1

More Sample calls and return vals

screenshot.41


int indexOf(int[] nums, int num)

Description: This method returns the index value of the first appearance of num  or -1 if num  is not an element of nums  .

Method Call return value/output
indexOf( {6,4 ,7,3, 4 }, 4) 1
indexOf( {6,4 7 ,3,2,7}, 7) 2
indexOf( {6,4 ,2,3}, 22) -1

 


int[] randos(int start, int end, int howMany)

Description:  This method returns an array of random numbers between [start,end] . Note make sure that each element in the new array attempts to make a new random int.  Use Math.random() , do not use any other mechanism for finding a random number. 

 randos_loop
 More example calls and returns :
randos2

double meanBetween(int[] nums, int min, int max)

Description:  This method returns the mean of nums ; however, this method only counts values within the range (min,max) as shown in the examples below:

screenshot.12
(Not inclusive, so do not count min or max )

Old versions:

Array Fun 1 

Array F un 2 (v 1)

 

Array Fun 3 (resizing included)