Complete the code to create a simple extruded boss/base feature.
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);
The method FeatureExtrusion2 is used to create an extruded boss/base feature in SolidWorks API.
Complete the code to set the extrusion depth to 0.05 meters.
double depth = [1];The extrusion depth is set to 0.05 meters as required.
Fix the error in the extrusion direction parameter to extrude in the reverse direction.
bool reverseDirection = [1];Setting reverseDirection to true makes the extrusion go in the reverse direction.
Fill both blanks to set the extrusion to blind type and specify the depth.
int extrusionType = [1]; double extrusionDepth = [2];
swEndCondBlind sets the extrusion type to blind, and 0.02 sets the depth to 2 centimeters.
Fill all three blanks to create an extruded boss/base with a sketch, depth, and direction.
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);
The sketch is created on the front plane, extrusion depth is 0.03 meters, and extrusion is set to reverse direction.