ENTSEL (TRY #2)

kemp

Usenet Archive
Joined
Dec 18, 2003
Messages
142
Reaction score
0
Okay, I'll try this again, for some reason it didn't post the first try...

Is there a way to make entsel grab an entity based on the closest point to a predefined point nearby? In other words - If I pick a point, can I use entsel to pick up lines nearby for fillet or trim?

When I use (entget (line1)) & (entget line2)) on the lines it doesnt retain a selection point like entsel does. Can I use CONS to add a point to an entity defined by entget? Of course I would still need to find out how to get the closest point....Sorry, thinking out loud.

Hope someone knows! Obviously I'm still learning...

Thanks, kemp
 
It is possible I'm making this harder than is necessary :)

I want to be able to manipulate these two lines without actually selecting them. These lines are offsets from two other pre existing lines. The script works this way: I select two lines, and the side to offset. From here I am trying to make it fillet and trim these new lines without having the user enter any more information. entsel works but I'm not aware of a way to use it on lines that aren't selected by the user.

Hope that clears a bit of the fog...

Thanks, kemp
 
kemp said:
Okay, I'll try this again, for some reason it didn't post the first try...

Is there a way to make entsel grab an entity based on the closest point to a predefined point nearby?

Like this?

(nentselp "Pick a point" (osnap (getpoint) "_nea"))
 
would not using the "last" option select the new lines?
 
I believe nentselp is probably what I'm looking for. Using entlast doesn't seem to retain a selection point. I am not sure how to use "last" in this situation as C Witt suggests.

From here what I need is a way to define the selection point that is on the line based on another point nearby. Is there a function like vlax-curve-getClosestPointTo for lines?

Thanks for the help from you all so far!

kemp

kemp said:
Okay, I'll try this again, for some reason it didn't post the first try...

Is there a way to make entsel grab an entity based on the closest point to a predefined point nearby?

Like this?

(nentselp "Pick a point" (osnap (getpoint) "_nea"))
 
The vlax-Curve functions work on lines. They are derived from the curve class.

--
R. Robert Bell, MCSE
www.AcadX.com

| I believe nentselp is probably what I'm looking for. Using entlast doesn't | seem to retain a selection point. I am not sure how to use "last" in this | situation as C Witt suggests. | | From here what I need is a way to define the selection point that is on the | line based on another point nearby. Is there a function like | vlax-curve-getClosestPointTo for lines? | | Thanks for the help from you all so far! | | kemp | | | | | > Okay, I'll try this again, for some reason it didn't post the first try... | > | > Is there a way to make entsel grab an entity based on the closest point to | a | > predefined point nearby? | | Like this? | | (nentselp "Pick a point" (osnap (getpoint) "_nea")) | |
 
I didn't even think to try that!

Thanks everyone, I will try this stuff monday when I return to work. Hopefully I will grow up to be a real lisp programmer soon :)

kemp
 
OK, something like this:

(setq lastent (entlast))
(command "offset")
(while (= (logand (getvar "CMDACTIVE") 1) 1)
(command pause)
)
(setq line1 (entnext lastent)
line2 (entnext line1)
)
(command "fillet" line1 line2)

HTH,
Jeff
 

Latest threads

Back
Top