I want to develop a command to create a beam first and then click inside the trapezoidal outline to create a slab. The big flow is conceived as follows.
0. Summarize the default data of the slab. 1. Click in the middle of the beam in the 2D window. 2. Get the click point and find the entire beam list and search for the nearest four beams close to the click point. 3. Find the point where the inner line of the nearest beam intersects the inner line of the syllable and form the four vertices of the outline of the slaughter. 4. Create a slab.
The question is, is it possible to create a slab by repeatedly clicking on a 2D window? How can I use the While statement to create a series of click point data and then press ESC (escape) to stop it from working anymore?