Author Topic: mirrored blocks  (Read 1675 times)

0 Members and 1 Guest are viewing this topic.

velasquez

  • Newt
  • Posts: 195
mirrored blocks
« on: March 09, 2016, 05:52:54 PM »
Can anyone tell me the best way to know if a block was mirrored?
Perhaps the value of the property: XEffectiveScaleFactor = -1.0?

Thanks

Lee Mac

  • Seagull
  • Posts: 12925
  • London, England
Re: mirrored blocks
« Reply #1 on: March 09, 2016, 06:00:34 PM »
Maybe something like this?
Code - Auto/Visual Lisp: [Select]
  1. (defun mirrored-p ( enx )
  2.     (minusp (* (cdr (assoc 41 enx)) (cdr (assoc 42 enx))))
  3. )

velasquez

  • Newt
  • Posts: 195
Re: mirrored blocks
« Reply #2 on: March 10, 2016, 12:50:17 PM »
Maybe something like this?
Code - Auto/Visual Lisp: [Select]
  1. (defun mirrored-p ( enx )
  2.     (minusp (* (cdr (assoc 41 enx)) (cdr (assoc 42 enx))))
  3. )

That's right.
Thanks Lee

Lee Mac

  • Seagull
  • Posts: 12925
  • London, England
Re: mirrored blocks
« Reply #3 on: March 10, 2016, 01:02:03 PM »
No worries  :-)