Author Topic: Coordinates and from the list  (Read 2898 times)

0 Members and 1 Guest are viewing this topic.

FELIX

  • Bull Frog
  • Posts: 242
Re: Coordinates and from the list
« Reply #15 on: December 22, 2016, 12:31:17 PM »
MP, I forgot to thank you anyway. :smitten:
OK.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Coordinates and from the list
« Reply #16 on: December 22, 2016, 12:33:46 PM »
You're most welcome Felix.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Coordinates and from the list
« Reply #17 on: December 22, 2016, 01:32:11 PM »
So many cats, so little skinnin' time ...

I want to play too!  :lol:

Code: [Select]
(defun foo ( ent )
    (   (lambda ( bar lst )
            (bar lst (list (cdr (assoc 038 lst))) (cdr (assoc 210 lst)))
        )
        (lambda ( lst elv vec / itm )
            (if (setq itm (assoc 10 lst))
                (cons (trans (append (cdr itm) elv) vec 0) (bar (cdr (member itm lst)) elv vec))
            )
        )
        (entget ent)
    )
)

FELIX

  • Bull Frog
  • Posts: 242
Re: Coordinates and from the list
« Reply #18 on: December 22, 2016, 03:05:50 PM »
Lee Mac, excellent, very good, I like your programming logic, it's a bit similar to mine. I am old because after 43 years programming (43 is not my age) it is difficult to fit the most current logics.

MP, your logic is advanced for me but also good, I said that I did not enjoy joking to see your reaction that was good, congratulations.

To all of the Forum that are visiting this topic the games are only valid when they stimulate the best perfomance that programming or is a healthy play.
OK.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Coordinates and from the list
« Reply #19 on: December 22, 2016, 03:37:45 PM »
Well if it's any consolation I'm currently 00111010.

I was born the same year LISP implementation began at MIT.

Humorously, my age and the year mentioned above share digits.

re: my reaction: you caught me on a good day, lol.

LISP puzzles draw many of us here.

Great fun and pun intended.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Coordinates and from the list
« Reply #20 on: December 22, 2016, 05:11:56 PM »
Another:
Code: [Select]
(defun UsingCurveFunctions (obj / i ret) ; Obj as vla-object or ename.
  (repeat (setq i (+ (vlax-curve-getendparam obj) (if (vlax-curve-isclosed obj) 0 1)))
    (setq ret (cons (trans (vlax-curve-getpointatparam obj (setq i (1- i))) 0 1) ret))
  )
)

FELIX

  • Bull Frog
  • Posts: 242
Re: Coordinates and from the list
« Reply #21 on: December 23, 2016, 12:32:09 PM »
MP, we are the same age.
Roy_043 very good.
To all of the Forum a Merry Christmas.
OK.