Friday, April 18, 2014

How To Get Your AutoCAD Drawings Right Away

You are working with AutoCAD. Or any CAD program. You know how it is. It takes a lot of time before your drawing has been created.

And then. After your drawing has been created. You cannot use it right away. The drawing must be checked. And that takes time too.

Big Disadvantage

Waiting for your CAD drawing before it is finished. And then the time that checking takes. That is a big disadvantage.

Is that how it always is? Is there no way that the waiting can be avoided? Is there a quicker way of getting your CAD drawing?

A Quicker Way 

There is a quicker way. There is no need for waiting for hours before your CAD drawing is finished and checked.

Get an AutoLISP program. An AutoLISP program can create parts of your CAD drawing. It can even create complete CAD drawings.

If the AutoLISP program is creating parts of your CAD drawing, you are saving a lot of time. The CAD operator is quicker.

The AutoLISP program creating a complete CAD drawing. That is even better. You get your CAD drawing in less than five seconds.

And working with the CAD program is very easy. Anybody can work with the CAD program. Even non CAD operators.

CAD Operators

I'm not saying that you must do that. I'm not saying to get rid of all your CAD operators. But maybe you can do with less of them.

I think. Even if you are working with a lot of CAD programs. You still need CAD operators. Not everything is done automatically.

The Point

That is the point of this post. There is no need for waiting for hours before your CAD drawing is finished. You can save a lot of time.
Something Completely Different


Here is something completely different from what you normally read in this blog. It is an imagination.


Imagine this. One day you wake up and you are a millionaire! Look at how different your life will be:


- You no longer have to worry about your debts, bills, and slaving for money.


- You can spend your time doing things you love, spend your time with your beloved family and friends.


- You no longer have to worry about money or have to be poor again. Never again living the life you used to have.


Do you want to be a millionaire? Make your dream lifestyle came true. Here's your chance to be a millionaire. Check this out.


Wake Up Millionaire:
http://l1nk.com/rfbzla



To Your Success


Free AutoLISP Course


Sorry. This offer is only for my readers from Malaysia. I want to give an AutoLISP course to them. Free of charge.


I have more than 900 readers. The majority of them is from the USA. More than 500. But I also have readers from Malaysia. About 120.


I don't know what my readers from Malaysia are doing. Are they with an engineering firm or architecture? Or just interested in AutoLISP?


I offer them a free AutoLISP course. It works like this. You let me know if interested and I'll come to your place.


I will give the AutoLISP course at your office. Your people can attend the AutoLISP course. The course consist of 15 lessons.


The first ten lessons are about AutoLISP. All the functions of AutoLISP are explained and there is talked about the system variables.


During the last five lessons we are going to write an AutoLISP program. The people attending the course come with a wish.


That is why this offer is only for my readers from Malaysia. I live in Malaysia. And I do not see how I could travel abroad.


The AutoLISP course is completely free. I will not charge you for the course. But I will ask you to refund my travel expenses.


The people attending the course will get an e-book about AutoLISP. The e-book is a PDF file. What is said in the course, can be found in the book.








Friday, April 11, 2014

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. Let's 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 find nine values. If you want to specify the first value in the second row, then you take this:


array (2,1)


Lists


In AutoLISP we don't have arrays. In AutoLISP we have lists. And like arrays. You have to store all the values in the list.


Let's take a list with the values from the one dimensional array. This is how the list looks.


(10 20 30 40)


But we need to store all the values in the list. This is how we can do it. The name of the list is LS.


(setq ls (list 10 20 30 40))


The list is stored in the variable LS. And that is done with the SETQ function. The LIST function is used to add all the values.


We want to retrieve the values of the list. Suppose we want to find the first value of the list. This is how it is done.


(setq v1 (nth 0 ls))


The number of the first value is zero. The number of the next value is one. Etc. So the number of the last value is three.


OK. Let's make things a little complicated. You saw a two dimensional array. Can we store it in a list in a two dimensional way?


Yes. You can. Of course. You could all the values of the array in a list. But you can also do it in a two dimensional way.


Take the values of each row of the list in a list. This is how it is done:


(setq l1 (list 10 11 12)
l2 (list 20 21 22)
l3 (list 30 31 32)
)


Now we have created three lists. We have created l1, l2, and l3. We turn them into one list. See how it is done.


(setq ls (list l1 l2 l3))


If you enter !ls in AutoCAD, then this is given back by the program:


((11 12 13) (21 22 23) (31 32 33))


Nice. But how can we retrieve the values in the list? Suppose want to know the first value that is in l2. How do we do that?


This is how it is done. We enter at the command prompt:


(setq vl (nth 0 (nth 1 ls)))


First we find the second list in the ls variable. And then we take the first element of the second list. Do you see?


Three Dimensional Lists


Sure. You want to confuse me. You want to make my life very difficult. Now you want to know about three dimensional arrays.


You want to know how you can specify three dimensional arrays in a list. Sorry. I don't need a psychologist now.


After telling you about two dimensional arrays and how their values can be put in a list. I think a three dimensional array is very clear


Arrays And Lists


There more functions that have to do with lists. But I'm not going to explain them. I just wanted to talk about arrays and lists.


Something Completely Different


Here is something completely different from what you normally read in this blog. It is an imagination.


Imagine this. One day you wake up and you are a millionaire! Look at how different your life will be:


- You no longer have to worry about your debts, bills, and slaving for money.


- You can spend your time doing things you love, spend your time with your beloved family and friends.


- You no longer have to worry about money or have to be poor again. Never again living the life you used to have.


Do you want to be a millionaire? Make your dream lifestyle came true. Here's your chance to be a millionaire. Check this out.


Wake Up Millionaire:
http://l1nk.com/rfbzla



To Your Success


Free AutoLISP Course


Sorry. This offer is only for my readers from Malaysia. I want to give an AutoLISP course to them. Free of charge.


I have more than 900 readers. The majority of them is from the USA. More than 500. But I also have readers from Malaysia. About 120.


I don't know what my readers from Malaysia are doing. Are they with an engineering firm or architecture? Or just interested in AutoLISP?


I offer them a free AutoLISP course. It works like this. You let me know if interested and I'll come to your place.


I will give the AutoLISP course at your office. Your people can attend the AutoLISP course. The course consist of 15 lessons.


The first ten lessons are about AutoLISP. All the functions of AutoLISP are explained and there is talked about the system variables.


During the last five lessons we are going to write an AutoLISP program. The people attending the course come with a wish.


That is why this offer is only for my readers from Malaysia. I live in Malaysia. And I do not see how I could travel abroad.


The AutoLISP course is completely free. I will not charge you for the course. But I will ask you to refund my travel expenses.


The people attending the course will get an e-book about AutoLISP. The e-book is a PDF file. What is said in the course, can be found in the book.