Search the Community
Showing results for tags 'array lisp object select'.
-
Selecting an Object while using the Array command....
CaddJax posted a topic in AutoLISP, Visual LISP & DCL
Hi all, and thanks in advance for checking this out. I'm finally biting the bullet and attempting to write some code for some of the more repetitive aspects of the work I do. Problem is that I'm having to reverse engineer others' script to try and get done what I want, and I've been unsuccessful finding it. Lee, I've been to your site and didn't find what I need, so if you have it, great, if not, I'll give you this one when I'm done. Here's the basic purpose: Wall Panels. I'm writing a code that will ask the user to select a wall (point to point), enter a panel height and the panel's height AAF. The program will take those inputs and fill the wall with an equal number of panels not to exceed 48"W. As I get the first part down, Plan B is to convert the polylines to blocks, query for reveals, etc.... But for now, I'm still learning to crawl. I can't seem to figure out how to select the polyline after it's drawn to use it in the array. I know it has to be a pretty simple fix, but I can't seem to figure it out. The dilemma is that there is no set point in model space, so the coordinates to use for selection will have to be based off of the initial starting point of the first panel. (this is the first run, so I haven't entered code for user input yet) If someone will help me through just this bit, It'd be much appreciated. Code is as follows: (the rtos is the last thing I was trying to play with, but can't get it to work either. What I used to test out the first part is below) This is what I was using just to make sure the code worked, but it's not feasible since it relies on set coordinates. (princ) )