What is "Ecount"

What is "Ecount"

Anonymous
Not applicable
1,080 Views
7 Replies
Message 1 of 8

What is "Ecount"

Anonymous
Not applicable

Good Day Everyone!

 

I am just starting with AutoLISP, I've seen a few sample codes and I am curious

about the function ecount.

Like what is it for? Is it even a function, idk. 

 

Beginner here.

I hope anyone can answer.

 

Thankss

0 Likes
Accepted solutions (2)
1,081 Views
7 Replies
Replies (7)
Message 2 of 8

ВeekeeCZ
Consultant
Consultant
Accepted solution

You should post the code where you got it from.

 

Anyway, very likely it's just a variable name for a counter (as index number). As in THIS  case, or  THIS  case.

 

Help HERE uses the word index for the same.

Lee HERE  uses i (as index) for the same purpose.

 

I am using i. Some of us use n

 

 

0 Likes
Message 3 of 8

john.uhden
Mentor
Mentor

Yep.  I always use i as an abbreviation for index.  I'm a lousy typist, so the fewer characters the better.  For keeping score I will use n, n1, n2, and maybe even n3.

You may often see me use (setq 2pi (* pi 2)) because if I need the value more than once there is less to type.  It's easier to read as well.

John F. Uhden

0 Likes
Message 4 of 8

Kent1Cooper
Consultant
Consultant
Accepted solution

@Anonymous wrote:

... I am curious about the function ecount.

Like what is it for? Is it even a function, idk. 

....


[You can determine whether something is an AutoLisp Function in the Functions Reference in Help, >here<.]

Kent Cooper, AIA
Message 5 of 8

john.uhden
Mentor
Mentor

@Kent1Cooper  just jogged my brain.

If ecount is a symbol for anything, and it is global, then enter the following at the Command prompt and see what it returns...

(type ecount) <-| Enter

Otherwise, please post your code and we will figure it out.

Don't fret.  Your question is good.  That's how you learn.

Uhden motto #1:  "You gotta start somewhere."

Uhden motto #2:  "If you don't know, ask."

Uhden motto #3:  "You just can't deal with an @$$hole."

Uhden motto #4a:  "You don't make yourself bigger by belittling others."

Uhden motto #4b:  "You don't get any cleaner by dragging others into the dirt with you."

John F. Uhden

0 Likes
Message 6 of 8

Sea-Haven
Mentor
Mentor

Dont forget these also use same idea often for a package would put in master library like rtd dtr.

 

(setq pi2 (/ pi 2.)
pi45 (* pi 0.25)
pi135 (* pi 0.75)
and so on

 

0 Likes
Message 7 of 8

Anonymous
Not applicable

Thank you for the response, it seems it was just a variable.

Sorry for the ignorant question, I have practically zero knowledge on basic functions at the time of posting.

But now I'm learning bit by bit.

 

Message 8 of 8

Anonymous
Not applicable

Thank you Kent1Cooper, I usually neglect help documentations.

But the documentation for LISP sure is helpful.

Many Thankss!