Stephen Shafer Posted December 16, 2008 Posted December 16, 2008 Ok, I have a block; we'll call "block X." Block X has many attributes, the only relevant ones for my next prog are "range" and "number". So the way this reads is there will be several block X's inserted into a drawing and numbered sequentially. In each one there will be a range (i.e.: 1-4, 5-6, 1-3, 4-5, and so forth). The range is determined independently based on the situation, it wont, necessarily, ever be the same. So what I want to do is select, arbitrarily, 4 Block X's and then get the information for both number and range. Then based on the previous number change the next. As an example we can say we have 4 block x's and they are numbered 1, 2, 3, and 4. The range for 1 is 1-4, for 2 it is 1-3, for 3 the range is 1-5 and 4 it is 1-12. What I would like to see is for the LISP to gather all this information and then increment the range based on the one before it (and "before" will be determined by number). So in the end it would look like this; 1:1-4, 2:5-7, 3:8-12, and 4:13-24. Now, I don't, necessarily, need the code to do this. Simply theory will do. I am not super familiar with LISP (read: I am new to it) so I might just be missing the process used for this. Right now I have managed to get it to work with its own numbers but that doesn't do me any good. SO any help is appreciated thanks Quote
borgunit Posted December 16, 2008 Posted December 16, 2008 I believe from what you describe, to be very possible. Doing the math and figuring out things is fairly easy. The trick is determining how things get "figured" out. How do you determine what groups are what? By position, current order, some reordering of groups. So if you start breaking it down into your pieces, I believe we can help you along the way. Quote
Stephen Shafer Posted December 17, 2008 Author Posted December 17, 2008 Well, the think I cant seem to wrap my head around is if I select all the blocks I want to change and, it gets the parallel lists of information. How do I change the 3rd block based on the changes in the second if the list is already set? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.