Author Topic: Point "From" Last Point  (Read 2170 times)

0 Members and 1 Guest are viewing this topic.

DanB

  • Bull Frog
  • Posts: 367
Point "From" Last Point
« on: June 07, 2005, 01:10:09 PM »
I have a snipet of code I am trying to write into a routine and I would prefer to "suppress" some of the prompts on the screen.

Code: [Select]

(defun frm (pnt)
 (getpoint "from" pnt)
)


Code: [Select]

  (setvar "osmode" 512)
  (setq pnt1 (getpoint "\nFirst Point: "))
  (setvar "osmode" 128)
  (prompt "\nSecond Point: ")
  (setq pnt2 (frm pnt1))


The intent is to have the user select a point nearest on a line then point 2 is perpendicular to a parallel line from point 1 (is that clear?). I would prefer the "from" command was not displayed at the prompt after "Second Point:" Is this possible? Other suggestions?

Thanks,
Dan

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Point "From" Last Point
« Reply #1 on: June 07, 2005, 01:40:53 PM »
I don't understand what you're try to do, could you perhaps make a small screenshot for us?
TheSwamp.org  (serving the CAD community since 2003)

daron

  • Guest
Point "From" Last Point
« Reply #2 on: June 07, 2005, 01:54:33 PM »
try @

DanB

  • Bull Frog
  • Posts: 367
Point "From" Last Point
« Reply #3 on: June 07, 2005, 02:20:09 PM »
I think I have uploaded a screen shot to lily pond, under Danb, screen1.bmp. Sorry wasn't sure how else to show image.

Crank

  • Water Moccasin
  • Posts: 1503
Point "From" Last Point
« Reply #4 on: June 07, 2005, 02:24:03 PM »
(setq pnt2 (getpoint pnt1))

or

(setq pnt2 (getpoint "\nSecond Point: " pnt1))

 :?:
Vault Professional 2023     +     AEC Collection

DanB

  • Bull Frog
  • Posts: 367
Point "From" Last Point
« Reply #5 on: June 07, 2005, 02:46:57 PM »
Thanks Crank, just what I needed.

Dan