Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start a script file in AutoCAD.
AutoCAD
_.[1] script.scrAttempts:
3 left
💡 Hint
Common Mistakes
Using 'open' instead of 'script' to run the file.
Using 'load' which is for loading applications, not scripts.
✗ Incorrect
The _.script command runs a script file in AutoCAD.
2fill in blank
mediumComplete the script command to pause execution for 5 seconds.
AutoCAD
_delay [1]Attempts:
3 left
💡 Hint
Common Mistakes
Adding extra words like 'pause' or 'sleep' which are not valid here.
Using commands like 'wait' which are not recognized in scripts.
✗ Incorrect
The _delay command takes the number of seconds as a parameter directly.
3fill in blank
hardFix the error in the script line to save the drawing.
AutoCAD
_.[1] "C:\\Projects\\drawing1.dwg"
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the underscore causes the command to fail in scripts.
Using '-saveas' which is for command line but not scripts.
✗ Incorrect
AutoCAD script commands require an underscore prefix to run properly in scripts.
4fill in blank
hardFill both blanks to open a drawing and zoom to extents.
AutoCAD
_.[1] "C:\\Projects\\plan.dwg" _.[2]
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'openfile' which is not a valid AutoCAD command.
Using 'zoomextents' directly without the zoom command.
✗ Incorrect
Use _open to open a drawing and _zoom to zoom.
5fill in blank
hardFill all three blanks to save, close, and exit AutoCAD in a script.
AutoCAD
_.[1] "C:\\Projects\\final.dwg" _.[2] _.[3]
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'exit' instead of 'quit' to close AutoCAD.
Omitting underscores causing commands to fail.
✗ Incorrect
Use _saveas to save, _close to close the drawing, and _quit to exit AutoCAD.
