0
0
Solidworksbi_tool~10 mins

Extruded boss/base in Solidworks - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a simple extruded boss/base feature.

Solidworks
IFeature* extrude = part->FeatureManager()->[1](true, false, false, 0, 0, 0.01, 0.0, false, false, false, false, 0.0, 0.0, false, false, false, false, true, false, false, 0, 0, false);
Drag options to blanks, or click blank then click option'
AFeatureExtrusion3
BFeatureExtrusion2
CFeatureCut3
DFeatureRevolve2
Attempts:
3 left
💡 Hint
Common Mistakes
Using FeatureCut3 instead of FeatureExtrusion2
Using FeatureRevolve2 which is for revolved features
2fill in blank
medium

Complete the code to set the extrusion depth to 0.05 meters.

Solidworks
double depth = [1];
Drag options to blanks, or click blank then click option'
A0.05
B0.5
C5
D0.005
Attempts:
3 left
💡 Hint
Common Mistakes
Using 0.5 which is too large
Using 5 which is too large and likely in wrong units
3fill in blank
hard

Fix the error in the extrusion direction parameter to extrude in the reverse direction.

Solidworks
bool reverseDirection = [1];
Drag options to blanks, or click blank then click option'
Atrue
Bfalse
C1
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Using false which extrudes in the default direction
Using integers instead of boolean values
4fill in blank
hard

Fill both blanks to set the extrusion to blind type and specify the depth.

Solidworks
int extrusionType = [1];
double extrusionDepth = [2];
Drag options to blanks, or click blank then click option'
AswEndCondBlind
BswEndCondThroughAll
C0.02
D0.2
Attempts:
3 left
💡 Hint
Common Mistakes
Using swEndCondThroughAll which extrudes through all material
Using too large depth values
5fill in blank
hard

Fill all three blanks to create an extruded boss/base with a sketch, depth, and direction.

Solidworks
sketch = part->CreateSketchOnPlane([1]);
extrude = part->FeatureManager()->FeatureExtrusion2(true, false, false, 0, 0, [2], 0.0, false, false, false, false, 0.0, 0.0, false, false, false, false, [3], false, false, 0, 0, false);
Drag options to blanks, or click blank then click option'
AfrontPlane
B0.03
Ctrue
DrightPlane
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong plane for sketch
Using incorrect depth values
Setting reverse direction to false