(setq ss (ssget "X" (list (cons -1 Ename))))
I didn't see anything in the help files on this restriction.
--
-Jason
Member of the Autodesk Discussion Forum Moderator Program
If you *really* want a selection set consisting of Ename, just use
(setq ss (ssadd Ename)).
___
"Jason Piercey" <discussio...@autodesk.com> wrote in message
news:4EC66B79F428C84C...@in.WebX.maYIadrTaRb...
So really just making it more complicated/senseless than need be.
(defun GetSeg ( Point )
(nth 2 (car (ssnamex (ssget Point) ) ) )
)
> (defun GetSeg ( Point )
> (nth 2 (car (ssnamex (ssget Point) ) ) )
> )
Perhaps this?
(defun GetSeg ( Point )
(nth 2 (car (ssnamex (ssget "F" (list (polar Point pi 0.001) (polar Point
0 0.001))) ) ) )
)
I tried the distance and it works until 0.000001 when Point is exactly on
top of the object.
Alex
If user selection is involved then just do this and forget about "F" with
(ssget)
(defun GetSeg ( Lst )
(nth 2 (car (ssnamex (ssget (cadr (entsel) ) ) ) ) )
)
--
-Jason
Member of the Autodesk Discussion Forum Moderator Program
"Alex Repetto" <arep...@huisman-itrec.com> wrote in message
news:DD32E8EFDA253436...@in.WebX.maYIadrTaRb...
> The idea was not to have to worry about user "selection". I was thinking
> completely backwards, What I was trying to do had no end benefit. It looked
> good at first, but after thinking logically there was no point in doing so.
Ok
> If user selection is involved then just do this and forget about "F" with
> (ssget)
>
> (defun GetSeg ( Lst )
> (nth 2 (car (ssnamex (ssget (cadr (entsel) ) ) ) ) )
> )
Off course but the trick is that using:
(ssget "F" (list (polar Point pi 0.001) (polar Point 0 0.001))) ) ) )
you create a selection set by dragging the crosshairs over the screen:
(defun C:DynamicSelect ( / PrevPoint Point sel )
(while 1
(setq Point (cadr (grread 1)))
(if (not PrevPoint)
(setq PrevPoint Point)
)
(setq sel (ssget "F" (list PrevPoint Point)))
(setq PrevPoint Point)
(if sel
(redraw (ssname sel 0) 3)
)
)
(princ)
)
Alex