Author Topic: find out the units thru lisp  (Read 1854 times)

0 Members and 1 Guest are viewing this topic.

viva

  • Guest
find out the units thru lisp
« on: August 17, 2006, 03:39:40 AM »
hi everybody,
                 i want  to find out the units of the drawing thru lisp. my requirement is to check the distance btween two polylines. if the distance is less than 25 meters, i want 2 place a circle . can anyone give me some idea to do the process.

regards
vivek

nivuahc

  • Guest
Re: find out the units thru lisp
« Reply #1 on: August 17, 2006, 07:21:03 AM »
(setq LinearUnits (getvar "LUNITS"))

1 = Scientific
2 = Decimal
3 = Engineering
4 = Architectural
5 = Fractional

(setq AngularUnits (getvar "AUNITS"))

0 = Decimal degrees
1 = Degrees/minutes/seconds
2 = Gradians
3 = Radians
4 = Surveyor's units

viva

  • Guest
Re: find out the units thru lisp
« Reply #2 on: August 18, 2006, 02:22:49 AM »
hi nivuahc
         thanks for ur valuable information. it will help me alot.

regards
vivek

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: find out the units thru lisp
« Reply #3 on: August 18, 2006, 03:31:44 AM »
.. also
Code: [Select]
(IF (= 1 (GETVAR "MEASUREMENT"))
  "Metric"
  "Imperial"
)
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.