Complete the code to activate the Smart Dimension tool in SolidWorks.
swApp.ActiveDoc.SketchManager.[1]()The SmartDimension method activates the Smart Dimension tool in SolidWorks sketches.
Complete the code to select an edge before applying Smart Dimension.
swApp.ActiveDoc.Extension.SelectByID2("Edge1", "EDGE", 0, 0, 0, false, 0, null, 0) swApp.ActiveDoc.SketchManager.[1]()
After selecting an edge, calling SmartDimension applies the dimension to the selected geometry.
Fix the error in the code to properly create a Smart Dimension on a selected point.
swApp.ActiveDoc.Extension.SelectByID2("Point1", "SKETCHPOINT", 0, 0, 0, false, 0, null, 0) swApp.ActiveDoc.SketchManager.[1]()
The correct method to create a Smart Dimension after selecting a point is SmartDimension.
Fill both blanks to select a line and apply Smart Dimension in SolidWorks.
swApp.ActiveDoc.Extension.SelectByID2("[1]", "[2]", 0, 0, 0, false, 0, null, 0) swApp.ActiveDoc.SketchManager.SmartDimension()
To select a sketch line, use its name like 'Line1' and the type 'SKETCHLINE'.
Fill all three blanks to select a circle and add a Smart Dimension in SolidWorks.
swApp.ActiveDoc.Extension.SelectByID2("[1]", "[2]", 0, 0, 0, false, 0, null, 0) swApp.ActiveDoc.SketchManager.[3]()
Select the circle by its name 'Circle1' and type 'SKETCHCIRCLE', then call 'SmartDimension' to add the dimension.