Drawing
Polylines with AutoLISP 2
In my last post I told you
that I'm going to talk about the AutoLISP program. That is what I'm
going to do now.
But I want to do it in a
different way than what you possibly are expecting. I will tell you
what needs to be done by the program.
What
Needs To Be Done
You know how the program
works:
- At the start a screen
with four line is drawn
- The user selects a line.
- After the selection of a
line the polyline is erased, if it is in the drawing.
- A polyline is drawn over
the line.
- Even if a polyline has
been selected, a polyline is drawn over it.
- When no more line or
polyline is selected, the AutoLISP program terminates.
Now you know what needs to
be done by the AutoLISP program. And it is done by separate functions
of the AutoLISP program.
The
Functions
These are the functions
that can be found in the AutoLISP program:
Function Action
START Setting the
limits, erasing everything in the screen, setting the snap and
grid, zooming out of the screen
DRLNS Drawing four lines
FNDET Finding line or
polyline entity
DELPL Delete polyline
DRWPL Draw polyline, no
intersection with other line
DPLIP Draw polyline,
intersection with other line
ENDPR Ending of the
program
Writing
An AutoLISP Program
Knowing what must be done
by the AutoLISP program, that is very important if you want to write
an AutoLISP program.
It is figuring out what
separate functions need to be written. And that makes programming in
AutoLISP so easy.
Next
Post
In my next post you will
find the complete AutoLISP program. You can copy it to a text file
and work with it in your CAD program.
When you work with it, you
will see how the AutoLISP program works and you can test it by
yourself.
In the posts that are
coming after my next post I will be talking about the functions. I
will explain how they work.
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