@zaid.k3112 wrote:
Hello, I need a simple lisp which lets me select a 2 points i.e. a rectangle in which it will make cross lines in a desired layer with line type.
If "a rectangle" means a closed Polyline such as is made by the RECTANG command, then you don't need to select 2 points, but a routine would be able to find the points from just a single pick of the Polyline [see Message 5]. And that could work whether the rectangle is orthogonally oriented or at any angle, or just a quadrilateral [not necessarily rectangular].
If "a rectangle" might be something else [e.g. 4 Lines, perhaps not even ending at the corners but, for example, in a space within a grid of Lines or Xlines, etc.], and if they would always be orthogonal, that would also not be difficult if you are sure to select two diagonally opposite corners [a Line between the 2 points, and one from X-of-one-and-Y-of-the-other to Y-of-one-and-X-of-the-other]. But that won't work if the rectangle or grid is not orthogonally oriented.
So what's the expected situation?
There are routines out there, such as >this< that includes the drawing of the rectangle as a Polyline, and others on the same Topic that use Lines, from which you can take the diagonal-Line-drawing parts only.
Kent Cooper, AIA