@a.tawkXHKN6 wrote:
it doesn't accept rectangle selection. only polyline selection works here.
A reasonable assumption, since what the RECTANG command makes is a Polyline. What kind(s) of object(s) are your rectangles?
>Here< is another, but also one that wants only closed four-segment Polylines.
EDIT: If they are, for example, Blocks whose contents are rectangular, and when they are orthogonally oriented, the X-ing could be done easily enough based on their bounding boxes. But not when rotated at non-orthogonal angles.
Why diagonal Polylines? The XQ command in my link, and at least some of those in @ВeekeeCZ 's link, draw Lines -- is there some reason that Lines would not do? It's easy enough to make them Polylines instead, but that would use more memory, so there should be a good reason for it.
Kent Cooper, AIA