Author Topic: text entmake problem  (Read 1602 times)

0 Members and 1 Guest are viewing this topic.

taner

  • Guest
text entmake problem
« on: August 24, 2008, 07:46:20 PM »
Dear all,

Please see the attachment,the same lisp code run in the two dwg files,we got different rtesult,why?

Tks!

Taner

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: text entmake problem
« Reply #1 on: August 24, 2008, 10:55:04 PM »
Drawing 2 has the text style "Backwards" box checked.
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.

taner

  • Guest
Re: text entmake problem
« Reply #2 on: August 25, 2008, 01:23:55 AM »
Drawing 2 has the text style "Backwards" box checked.

Thanks CAB very much!

change as below is ok.
Code: [Select]
(defun c:emake ()
  (command "style" "mol" "swiss.ttf" "" "" "" "n" "n")
  (entmake '((0 . "TEXT") (100 . "AcDbEntity")
    (67 . 0)
    (8 . "COM")
    (62 . 3)
    (100 . "AcDbText")
    (10 -421.0501190928188 1114.386474490744 0.0)
    (40 . 2.0)
    (1 . "HK639")
    (50 . 0.0)
    (41 . 1.0)
    (51 . 0.0)
    (7 . "mol")
    (71 . 0)
    (72 . 0)
    (11 0.0 0.0 0.0)
    (100 . "AcDbText")
    (73 . 0)
   )
  )
  (entmake '((0 . "TEXT") (100 . "AcDbEntity")
    (67 . 0)
    (8 . "COM")
    (62 . 1)
    (100 . "AcDbText")
    (10 -411.1573992793351 1113.995069490480 0.0)
    (40 . 2.0)
    (1 . "HK639")
    (50 . 0.0)
    (41 . 1.0)
    (51 . 0.0)
    (7 . "mol")
    (71 . 2)
    (72 . 0)
    (11 0.0 0.0 0.0)
    (100 . "AcDbText")
    (73 . 0)
   )
  )
  (entmake '((0 . "TEXT") (100 . "AcDbEntity")
    (67 . 0)
    (8 . "COM")
    (62 . 6)
    (100 . "AcDbText")
    (10 -405.7509388457833 1113.051869709140 0.0)
    (40 . 2.0)
    (1 . "HK639")
    (50 . 0.0)
    (41 . 1.0)
    (51 . 0.0)
    (7 . "mol")
    (71 . 4)
    (72 . 0)
    (11 0.0 0.0 0.0)
    (100 . "AcDbText")
    (73 . 0)
   )
  )
  (princ)
)

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: text entmake problem
« Reply #3 on: August 25, 2008, 07:45:18 AM »
You are welcome.
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.