Author Topic: Need mtext help  (Read 2680 times)

0 Members and 1 Guest are viewing this topic.

bman

  • Guest
Need mtext help
« on: August 21, 2004, 04:25:31 PM »
How can i modify this routine to prompt for the user text in the mtext editor in lieu of at the command line? Currently it mimmicks the dtext command entry line by line at the command prompt.
Code: [Select]
(defun c:L80 (/ txtht)
  (setq txtht (* 0.08 (getvar "dimscale")))
  (command "-style"
      "simplex"       ; name of text style
      "simplex"  ; font name
      txtht         ; height of text
      "1"           ; width factor
      "0"           ; obliquing angle
      ""            ; text backwards
      ""            ; text upside-down
       )
  (while (> (getvar "CMDACTIVE") 0)(command "")) ; Vertical
  (prompt "\nCurrent Style set to L80 ")
  (princ)
(command "mtext")
)

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Need mtext help
« Reply #1 on: August 21, 2004, 06:56:48 PM »
Code: [Select]
(defun c:l80 (/ txtht)
  (setq txtht (* 0.08 (getvar "dimscale")))
  (command "-style" "simplex" ; name of text style
           "simplex" ; font name
           txtht ; height of text
           "1" ; width factor
           "0" ; obliquing angle
           "" ; text backwards
           "" ; text upside-down
  )
  (while (> (getvar "CMDACTIVE") 0) (command "")) ; Vertical
  (prompt "\nCurrent Style set to L80 ")
  (princ)
  (initdia)
  (command "mtext")
)
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.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Need mtext help
« Reply #2 on: August 22, 2004, 09:19:52 PM »
I see you got your answer on another board.
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.

bman

  • Guest
Need mtext help
« Reply #3 on: August 23, 2004, 07:10:18 PM »
I forgot that i posted here too
thanks CAB