Jump to content

Recommended Posts

Posted (edited)
Same question as above...hot to set that point??

 

Flopo,

 

if you run (_LowYcoord pointList) where any of the variables (sym) included on pointList evaluates to nil the result will be nil and not a point list.

Make sure those vairables is a valid point list

 

what you can do is

 
(defun _LowYcoord (pointList)
   (car
     (vl-sort
     (vl-remove-if 'null (mapcar 'eval pointList))
       '(lambda (a b) (< (cadr a) (cadr b)))
       )
     )

 )

 

that way you can maintain this line

(setq pMin (_LowYcoord pointList))

 

and not rebuilding the list everytime to include only valid variables

(setq pointList '(J1 J2 J3 J4))

(setq pointList '(J10 J11 J23 J4))

Edited by pBe
  • Replies 22
  • Created
  • Last Reply

Top Posters In This Topic

  • flopo

    6

  • BlackBox

    6

  • Tharwat

    4

  • pBe

    3

Top Posters In This Topic

Posted Images

Posted

Now is working!!! Thanks Pbe!

 

Thanks guys!

Posted
Now is working!!! Thanks Pbe!

 

Thanks guys!

 

Right on. kudos to the rest of the guys , they did all the work ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...