0
0
Solidworksbi_tool~10 mins

Under-defined vs fully-defined vs over-defined in Solidworks - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to check if a sketch is fully defined.

Solidworks
if sketch.[1] == 'Fully Defined':
    print('Sketch is fully defined')
Drag options to blanks, or click blank then click option'
Astate
Bdefinition
Cmode
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'state' instead of 'status' causes attribute errors.
2fill in blank
medium

Complete the code to retrieve the definition state of the sketch.

Solidworks
definition_state = sketch.[1]
Drag options to blanks, or click blank then click option'
Adefinition
Bstatus
Cmode
Dstate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'definition', 'mode' or 'state' causes attribute errors.
3fill in blank
hard

Fix the error in the code to detect an over-defined sketch.

Solidworks
if sketch.[1] == 'Over Defined':
    print('Sketch has conflicting constraints')
Drag options to blanks, or click blank then click option'
Astatus
Bdefinition
Cstate
Dmode
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'state' or 'mode' causes attribute errors.
4fill in blank
hard

Fill both blanks to check if a sketch is under-defined and print a message.

Solidworks
if sketch.[1] == '[2]':
    print('Sketch needs more constraints')
Drag options to blanks, or click blank then click option'
Astatus
Bdefinition
CUnder Defined
DFully Defined
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the property and state values.
5fill in blank
hard

Fill all three blanks to print the sketch state with a message.

Solidworks
state = sketch.[1]
if state == '[2]':
    print('Sketch is ' + [3])
Drag options to blanks, or click blank then click option'
Astatus
BFully Defined
Cstate
DUnder Defined
Attempts:
3 left
💡 Hint
Common Mistakes
Using string literals instead of variable for print.