Complete the code to open the tool palette window in AutoCAD.
command "[1]"
The command TOOLPALETTES opens the tool palette window in AutoCAD.
Complete the code to add a new tool to the palette by dragging a block named 'Window'.
drag('[1]') to tool_palette
Dragging the block named Window adds it to the tool palette.
Fix the error in the code to rename a tool palette from 'OldName' to 'NewName'.
tool_palette.[1] = 'NewName'
The property name is used to rename the tool palette.
Fill both blanks to create a new tool palette and add it to the palettes collection.
new_palette = palettes.[1]('[2]')
The method add creates a new palette named CustomTools.
Fill all three blanks to set the tooltip, command, and icon for a tool in the palette.
tool.tooltip = '[1]' tool.command = '[2]' tool.icon = '[3]'
The tooltip describes the tool, the command runs the rectangle tool, and the icon shows its image.
