Posts

Showing posts with the label ought

What Everybody Ought To Know About Arrays And AutoLISP

What Everybody Ought To Know About Arrays And AutoLISP You know about arrays. You have arrays in Visual Basic, in C++, and many other programming languages. But AutoLISP? OK. Let me be very clear. There are no arrays in AutoLISP. But. In AutoLISP. Can you store values that are related? Oh yes. You can. But is is done in a different way. It is not done in an array. It is done in a list. AutoLISP works with lists. Arrays Let me be very clear. Lets start with an array. I start with a one dimensional array. Here is the array: 1 2 3 4 10 20 30 40 You find the following values in the array. 10, 20, 30, 40 So in this one dimensional array you find four values. 1 2 3 1 10 11 12 2 20 21 22 3 30 31 32 Above you see a two dimensional array. It consists of three rows and three columns. The rows and the columns have been numbered. You find the following values in the array. 10, 11, 12, 20, 21, 22, 30, 31, 32 So in this array you fi...