Author Topic: Looking for a modified version of Rectangular Array.  (Read 5780 times)

0 Members and 1 Guest are viewing this topic.

ribarm

  • Gator
  • Posts: 3282
  • Marko Ribar, architect
Re: Looking for a modified version of Rectangular Array.
« Reply #15 on: October 04, 2018, 07:53:29 AM »
I've got from one user info that 3parray.lsp is not working well when you specify P(x) point on X axis of current UCS...
So I've made this quick fix mod... - now should work as desired :

Code: [Select]
...
(setq
...
              nx  (fix (car (list (/ (car (mapcar '- i1 p0)) (if (not (zerop (car vx))) (car vx) 1e-8)) (/ (cadr (mapcar '- i1 p0)) (if (not (zerop (cadr vx))) (cadr vx) 1e-8)))))
              ny  (fix (cadr (list (/ (car (mapcar '- i2 p0)) (if (not (zerop (car vy))) (car vy) 1e-8)) (/ (cadr (mapcar '- i2 p0)) (if (not (zerop (cadr vy))) (cadr vy) 1e-8)))))
...
); end setq
...

I hope that you can implement this fix in your routine - 3parray.lsp
HTH., M.R.
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube