0
0
Solidworksbi_tool~10 mins

Rectangle and polygon tools 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 create a rectangle by specifying the corner points.

Solidworks
CreateRectangle(Point1, Point2[1])
Drag options to blanks, or click blank then click option'
A.
B,
C;
D:
Attempts:
3 left
💡 Hint
Common Mistakes
Using a semicolon instead of a comma
Missing separator between points
2fill in blank
medium

Complete the code to specify the number of sides for a polygon.

Solidworks
CreatePolygon(CenterPoint, Radius, [1])
Drag options to blanks, or click blank then click option'
AAngle
BHeight
CLength
DSides
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Angle' instead of 'Sides'
Confusing radius with number of sides
3fill in blank
hard

Fix the error in the polygon creation code by choosing the correct method name.

Solidworks
polygon = Sketch.[1](center, radius, sides)
Drag options to blanks, or click blank then click option'
ADrawPolygon
BPolygonCreate
CCreatePolygon
DMakePolygon
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect method names like 'DrawPolygon' or 'MakePolygon'
4fill in blank
hard

Fill the blank to create a rectangle with width and height parameters.

Solidworks
rectangle = Sketch.[1](startPoint, width=width, height=height)
Drag options to blanks, or click blank then click option'
ACreateRectangle
BDrawRectangle
CRectangleCreate
DMakeRectangle
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'DrawRectangle' as method name
Confusing parameter names
5fill in blank
hard

Fill all three blanks to create a polygon with center, radius, and number of sides.

Solidworks
polygon = Sketch.[1](center=[2], radius=[3], sides=6)
Drag options to blanks, or click blank then click option'
ACreatePolygon
BcenterPoint
CradiusValue
DDrawPolygon
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'DrawPolygon' as method
Using generic names instead of descriptive parameters