Complete the code to open the Properties palette in AutoCAD.
command "[1]"
The command PROPERTIES opens the Properties palette in AutoCAD.
Complete the code to change the color of a selected object using the Properties palette.
properties.color = [1]Colors in the Properties palette are set as strings like "Red".
Fix the error in the code to set the layer of a selected object via the Properties palette.
properties.[1] = "Walls"
The correct property name is Layer with a capital L.
Fill both blanks to filter objects by color and then change their lineweight using the Properties palette.
filtered_objects = filter(lambda obj: obj.color [1] "Red", objects) for obj in filtered_objects: obj.lineweight = [2]
The filter checks for objects with color equal to "Red" using ==. Then lineweight is set to 0.25mm.
Fill all three blanks to create a dictionary of object IDs and their layer names from the Properties palette.
layer_dict = [1]([2]: obj.[3] for obj in objects if obj.Layer == "Walls")
Use dict to create a dictionary. The property for layer is Layer. The filter checks if the object's layer equals "Walls".
