Complete the code to detect the boundary of a hatch object.
boundary = hatch.[1]The boundary_paths property returns the boundary loops of a hatch object in AutoCAD.
Complete the code to iterate over each boundary path of the hatch.
for path in hatch.[1]: process(path)
The boundary_paths property contains all boundary loops of the hatch, which can be iterated.
Fix the error in accessing the hatch boundary loops.
loops = hatch.[1]The correct property name is boundary_paths. It is a property, not a method, so no parentheses are used.
Fill both blanks to extract the number of loops and the first loop from the hatch.
num_loops = len(hatch.[1]) first_loop = hatch.[2][0]
The property boundary_paths contains all loops. Use it to get the count and access the first loop.
Fill all three blanks to check if the hatch has any boundary loops and print the first loop.
if len(hatch.[1]) [2] 0: first_loop = hatch.[3][0] print(first_loop)
Check if the number of boundary loops is greater than zero, then access and print the first loop using boundary_paths.
