Complete the code to select the mirror line in SolidWorks sketch.
sketch.SelectMirrorLine([1])In SolidWorks, the mirror line in a sketch is typically a centerline. Selecting the centerline allows you to mirror entities across it.
Complete the code to mirror selected sketch entities about the mirror line.
sketch.MirrorEntities(entities, [1])The mirrorLine is used to mirror sketch entities in SolidWorks. It defines the axis of symmetry.
Fix the error in the code to correctly mirror entities in the sketch.
mirroredEntities = sketch.MirrorEntities([1], mirrorLine)The method MirrorEntities expects a collection of entities, so the parameter should be entities, representing multiple sketch entities.
Fill both blanks to create a mirror of selected entities about the centerline and add them to the sketch.
mirrored = sketch.MirrorEntities([1], [2]) sketch.AddEntities(mirrored)
You need to pass the entities to mirror and the centerline as the mirror line. Then add the mirrored entities back to the sketch.
Fill all three blanks to select entities, mirror them about the centerline, and update the sketch.
entities = sketch.SelectEntities([1]) mirrored = sketch.MirrorEntities(entities, [2]) sketch.Update([3])
First, select the selected entities, then mirror them about the centerline, and finally update the sketch with the mirrored entities.