Why "_.line" instead of "line" ?

Why "_.line" instead of "line" ?

smallƑish
Advocate Advocate
1,081 Views
5 Replies
Message 1 of 6

Why "_.line" instead of "line" ?

smallƑish
Advocate
Advocate

Can you please explain why here using "_.line" instead of "line" (marked yellow) also "_non"

1. and 0. after the list and inters what do the integers there (marked yellow)?.3

withsreekanth_0-1647431215833.png

 

0 Likes
Accepted solutions (3)
1,082 Views
5 Replies
Replies (5)
Message 2 of 6

Kent1Cooper
Consultant
Consultant
Accepted solution

The underscore prefix makes it work in AutoCAD for any language.  The period prefix makes it use the native AutoCAD command, to avoid trouble if the command has been undefined and given a specialty new definition.  The numbers are Z coordinates in 3-coordinate XYZ point lists.

Kent Cooper, AIA
Message 3 of 6

smallƑish
Advocate
Advocate

for polar the z coordinate should be 1 ?

0 Likes
Message 4 of 6

ВeekeeCZ
Consultant
Consultant
Accepted solution

@smallƑish wrote:

for polar the z coordinate should be 1 ?


 

Could be. And it's not a Z coordinate but a distance. While learning you can try to figure out why the actual value does not really matter unless it's zero.

Message 5 of 6

Kent1Cooper
Consultant
Consultant
Accepted solution

@smallƑish wrote:

for polar the z coordinate should be 1 ?


Sorry -- the yellow-highlighted zeros are the Z coordinates.  The 1's are a distance, but in (inters) with the on-segment argument at the end being nil, i.e. not requiring the intersection to be on the segments between points but rather on the endless extension of those segments, then as @ВeekeeCZ pointed out, the distance doesn't matter -- a "virtual line" to intersect with the endless extension of can be of any length.

Kent Cooper, AIA
Message 6 of 6

martti.halminen
Collaborator
Collaborator

At least that is the way the underscore is supposed to work.

 

I once had a bad experience, trying to get a large Lisp program written on the english-language version to run on italian-language Acad 2009.

 

After three hours of continuously hitting commands where the underscore worked for the command name but not for the parameters, I gave up and told our Italian factory to buy the english-language version for running that program.

 

-- 

0 Likes