Complete the code to create a rectangle by specifying the corner points.
CreateRectangle(Point1, Point2[1])The rectangle creation function requires two points separated by a comma.
Complete the code to specify the number of sides for a polygon.
CreatePolygon(CenterPoint, Radius, [1])The number of sides defines the polygon shape, so 'Sides' is the correct parameter.
Fix the error in the polygon creation code by choosing the correct method name.
polygon = Sketch.[1](center, radius, sides)The correct method to create a polygon in SolidWorks API is 'CreatePolygon'.
Fill the blank to create a rectangle with width and height parameters.
rectangle = Sketch.[1](startPoint, width=width, height=height)'CreateRectangle' is the correct method name, and 'width' is the parameter for the rectangle's width.
Fill all three blanks to create a polygon with center, radius, and number of sides.
polygon = Sketch.[1](center=[2], radius=[3], sides=6)
The method is 'CreatePolygon', with parameters 'centerPoint' and 'radiusValue' for center and radius.