Author Topic: I can not created a line  (Read 2455 times)

0 Members and 1 Guest are viewing this topic.

Adesu

  • Guest
I can not created a line
« on: January 18, 2007, 11:13:56 PM »
Hi Alls,
I just create a simle a code,look this below,but that code I can not create a line,for detail look at attach file
Code: [Select]
(setq loc '(0 0 0))
  (setq rad 5)
  (command "_circle" loc rad "")
  (setq el1 (entlast))
  (setq p1 (polar loc 0 rad))
  (command "_line" loc p1 "")
  (setq el2 (entlast))

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: I can not created a line
« Reply #1 on: January 18, 2007, 11:23:35 PM »
I notice you have OSNAP on .. what is the snap setting ?
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.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: I can not created a line
« Reply #2 on: January 18, 2007, 11:37:21 PM »
As Kerry pointed out. Try this:
Code: [Select]
(command "_line" "non" loc "non" p1 "")
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Adesu

  • Guest
Re: I can not created a line
« Reply #3 on: January 18, 2007, 11:41:05 PM »
Hi Kerry,
You are right,thanks..thanks..thanks.

I notice you have OSNAP on .. what is the snap setting ?

Adesu

  • Guest
Re: I can not created a line
« Reply #4 on: January 18, 2007, 11:44:04 PM »
Hi CAB,
it's nice trick,thanks for your share.

As Kerry pointed out. Try this:
Code: [Select]
(command "_line" "non" loc "non" p1 "")

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: I can not created a line
« Reply #5 on: January 18, 2007, 11:45:20 PM »
You're welcome.

The code in Alan's post will solve the problem < as usual > ... or via code, save the settings, switch the snaps off and restore settings after objects are created.

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.