Bird
Raised Fist0
Solidworksbi_tool~10 mins

Mirror feature in Solidworks - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a mirror feature of a selected body.

Solidworks
mirrorFeature = modelDoc.FeatureManager.[1](bodyToMirror, mirrorPlane)
Drag options to blanks, or click blank then click option'
AInsertBossFeature
BInsertMirrorFeature2
CInsertCutFeature
DInsertFilletFeature
Attempts:
3 left
💡 Hint
Common Mistakes
Using InsertCutFeature instead of InsertMirrorFeature2
Confusing boss features with mirror features
2fill in blank
medium

Complete the code to specify the mirror plane by its name.

Solidworks
mirrorPlane = modelDoc.GetEntityByName("[1]")
Drag options to blanks, or click blank then click option'
AFront Plane
BSketch1
CTop Plane
DRight Plane
Attempts:
3 left
💡 Hint
Common Mistakes
Using a sketch name instead of a plane
Choosing a plane that does not exist in the model
3fill in blank
hard

Fix the error in the mirror feature creation code.

Solidworks
mirrorFeature = modelDoc.FeatureManager.InsertMirrorFeature2([1], mirrorPlane)
Drag options to blanks, or click blank then click option'
AbodyToMirror
BbodyToMirror, true
CbodyToMirror, false
DbodyToMirror, 1
Attempts:
3 left
💡 Hint
Common Mistakes
Adding extra boolean parameters causing syntax errors
Passing incorrect types as arguments
4fill in blank
hard

Fill both blanks to complete the mirror feature creation with options.

Solidworks
mirrorFeature = modelDoc.FeatureManager.InsertMirrorFeature2([1], [2])
Drag options to blanks, or click blank then click option'
AbodyToMirror
BmirrorPlane
Ctrue
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the order of arguments
Using boolean values instead of the mirror plane
5fill in blank
hard

Fill all three blanks to create a mirror feature with bodies and options.

Solidworks
mirrorFeature = modelDoc.FeatureManager.InsertMirrorFeature2([1], [2], [3])
Drag options to blanks, or click blank then click option'
AbodyToMirror
BmirrorPlane
Ctrue
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using false instead of true for the third argument
Incorrect order of arguments

Practice

(1/5)
1. What is the primary purpose of the Mirror feature in SolidWorks?
easy
A. To scale a part uniformly
B. To create a symmetrical copy of a part or feature
C. To rotate a part around an axis
D. To delete unwanted features

Solution

  1. Step 1: Understand the Mirror feature function

    The Mirror feature is used to create a copy of a part or feature that is symmetrical about a plane or face.
  2. Step 2: Compare options with the Mirror feature purpose

    Only To create a symmetrical copy of a part or feature describes creating a symmetrical copy, which matches the Mirror feature's purpose.
  3. Final Answer:

    To create a symmetrical copy of a part or feature -> Option B
  4. Quick Check:

    Mirror feature = symmetrical copy [OK]
Hint: Mirror copies symmetrically about a plane or face [OK]
Common Mistakes:
  • Confusing Mirror with Rotate or Scale
  • Thinking Mirror deletes features
  • Assuming Mirror changes size
2. Which of the following is the correct first step when creating a Mirror feature in SolidWorks?
easy
A. Select the mirror plane or face
B. Select the feature to mirror
C. Create a new sketch
D. Save the file

Solution

  1. Step 1: Identify the mirror reference

    To create a Mirror feature, you must first select the plane or face about which the feature will be mirrored.
  2. Step 2: Confirm the correct order of selection

    After selecting the mirror plane or face, you then select the feature to mirror. So the first step is selecting the mirror plane or face.
  3. Final Answer:

    Select the mirror plane or face -> Option A
  4. Quick Check:

    First step = select mirror plane [OK]
Hint: Always pick mirror plane before features [OK]
Common Mistakes:
  • Selecting features before mirror plane
  • Starting with a new sketch unnecessarily
  • Saving before creating the mirror
3. Given a part with a single extruded boss feature on the right side, what will happen if you apply a Mirror feature about the center plane of the part?
medium
A. A symmetrical extruded boss will appear on the left side
B. The original feature will be deleted
C. The part will be scaled down by half
D. Nothing will change

Solution

  1. Step 1: Understand the Mirror feature effect on a single feature

    Mirroring about the center plane creates a symmetrical copy on the opposite side of the plane.
  2. Step 2: Apply this to the extruded boss on the right side

    The extruded boss on the right will be copied symmetrically to the left side, creating a matching feature.
  3. Final Answer:

    A symmetrical extruded boss will appear on the left side -> Option A
  4. Quick Check:

    Mirror about center plane = symmetrical copy opposite side [OK]
Hint: Mirror duplicates features symmetrically [OK]
Common Mistakes:
  • Thinking Mirror deletes original features
  • Assuming Mirror scales the part
  • Believing Mirror does nothing without multiple features
4. You tried to create a Mirror feature but received an error saying "No valid entities selected to mirror." What is the most likely cause?
medium
A. You selected the wrong file format
B. You selected multiple mirror planes
C. You forgot to save the part before mirroring
D. You did not select any features or bodies to mirror

Solution

  1. Step 1: Analyze the error message

    The error "No valid entities selected to mirror" means the software did not detect any features or bodies chosen for mirroring.
  2. Step 2: Identify the common cause

    This usually happens when the user selects the mirror plane but forgets to select the features or bodies to mirror.
  3. Final Answer:

    You did not select any features or bodies to mirror -> Option D
  4. Quick Check:

    Error means no features selected [OK]
Hint: Always select features after mirror plane [OK]
Common Mistakes:
  • Ignoring the need to select features
  • Confusing error with file or save issues
  • Selecting multiple mirror planes incorrectly
5. You have a complex part with multiple features on one side. You want to mirror all these features about a mid-plane but exclude one small feature. What is the best approach?
hard
A. Use the Mirror feature on the small feature only
B. Mirror the entire part and then delete the small feature on the mirrored side
C. Select all features except the small one before applying the Mirror feature
D. Create a new sketch excluding the small feature and mirror that sketch

Solution

  1. Step 1: Understand selective mirroring

    The Mirror feature allows selecting specific features to mirror, so you can exclude unwanted ones by not selecting them.
  2. Step 2: Compare options for excluding a feature

    Select all features except the small one before applying the Mirror feature directly excludes the small feature by not selecting it, which is efficient and clean. Mirror the entire part and then delete the small feature on the mirrored side wastes effort deleting after mirroring. Create a new sketch excluding the small feature and mirror that sketch is complex and unnecessary. Use the Mirror feature on the small feature only mirrors only the small feature, which is opposite of the goal.
  3. Final Answer:

    Select all features except the small one before applying the Mirror feature -> Option C
  4. Quick Check:

    Exclude by selection before mirroring [OK]
Hint: Pick only features you want mirrored [OK]
Common Mistakes:
  • Mirroring everything then deleting
  • Trying to mirror sketches instead of features
  • Mirroring only the unwanted feature