Thursday, March 13, 2014

Drawing Polylines with AutoLISP 1

I haven't been talking about AutoLISP lately. I don't know. Are you thinking I feel I have talked enough about AutoLISP?


If you were thinking in a negative way. Stop doing that. Now I'm going to talk about an AutoLISP program that I created.


I have created the AutoLISP program for a couple of my students. They wanted to learn programming in AutoLISP.


The Program




The program starts. Four lines are drawn. See the opening screen that shows up. See how the four lines look.


After the program has started. The opening screen is displayed in the screen. And there is asked to select a line.


A line is selected. And a polyline is drawn over the line. This is how it looks if a horizontal line has been selected.




But the vertical line could also have been selected. If that is done, then the polyline is drawn over the selected area.


See how looks. The polyline is not drawn over the whole line. It is only drawn over the area where the line was selected.




That is important. After a line has been selected, the previously drawn polyline is erased. So it is no longer there.


One more thing. The user is asked to select a line. But you know how users are. Do they do it on purpose? They may select a polyline.


Well. If they select a polyline, the AutoLISP program will not crash. The polyline will be erased and a new one is drawn.


Next Post


In my next post I'm going to talk about the AutoLISP program. I'm going to give you the whole listing and tell you what needs to be done.


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.








No comments:

Post a Comment