delete a shape that too small for laser cut


im new at using macro in corel, i just take code from this forum, and tried to customized thing with trial and error, i cant write script to be honest (hehe)

im working at laser cutting. after finising the design i need to clean-up the design, like remove the small shape that too small for laser cutting, like image below

for now, i have to break apart the object, then manually deleting the small shapes.

is it possible to do it with macro?

im thinking a code that

- break apart the shape,

- selecting shape that too short with parameter "length of curve" < 3 cm

- then delete that selection

- and put everything back