0
0
Solidworksbi_tool~10 mins

Mirror entities in sketch 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 select the mirror line in SolidWorks sketch.

Solidworks
sketch.SelectMirrorLine([1])
Drag options to blanks, or click blank then click option'
AmirrorLine
Bcenterline
Caxis
Dedge
Attempts:
3 left
💡 Hint
Common Mistakes
Using a regular line instead of a centerline for mirroring.
2fill in blank
medium

Complete the code to mirror selected sketch entities about the mirror line.

Solidworks
sketch.MirrorEntities(entities, [1])
Drag options to blanks, or click blank then click option'
AmirrorLine
BmirrorAxis
CmirrorPlane
DmirrorPoint
Attempts:
3 left
💡 Hint
Common Mistakes
Using mirrorPlane or mirrorPoint which are not valid for sketch mirroring.
3fill in blank
hard

Fix the error in the code to correctly mirror entities in the sketch.

Solidworks
mirroredEntities = sketch.MirrorEntities([1], mirrorLine)
Drag options to blanks, or click blank then click option'
Aentities
BentityList
Centity
DentitySet
Attempts:
3 left
💡 Hint
Common Mistakes
Passing a single entity instead of a collection.
4fill in blank
hard

Fill both blanks to create a mirror of selected entities about the centerline and add them to the sketch.

Solidworks
mirrored = sketch.MirrorEntities([1], [2])
sketch.AddEntities(mirrored)
Drag options to blanks, or click blank then click option'
Aentities
BmirrorLine
Ccenterline
DmirrorAxis
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing mirrorLine with mirrorAxis or using wrong variable names.
5fill in blank
hard

Fill all three blanks to select entities, mirror them about the centerline, and update the sketch.

Solidworks
entities = sketch.SelectEntities([1])
mirrored = sketch.MirrorEntities(entities, [2])
sketch.Update([3])
Drag options to blanks, or click blank then click option'
Aall
Bcenterline
Cmirrored
Dselected
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect variable names or forgetting to update the sketch.