Author Topic: Entmake with text alignment notworking  (Read 2325 times)

0 Members and 1 Guest are viewing this topic.

HasanCAD

  • Swamp Rat
  • Posts: 1422
Entmake with text alignment notworking
« on: October 04, 2010, 10:33:38 AM »
Entmake without text alignment working good
Code: [Select]
(entmakex (list
      (cons 0  "TEXT")
      (cons 1  LyrName)
      (cons 7  "LyrNameTxt")
      (cons 8  LyrName)
      (cons 10 Pnt2)
      (cons 40 220)
      (cons 41 0.8)
      (cons 62 LyrClr)
      ))
but when try to add dxf code for alignment the text created in 0,0

Code: [Select]
(entmakex (list
      (cons 0  "TEXT")
      (cons 1  LyrName)
      (cons 7  "LyrNameTxt")
      (cons 8  LyrName)
      (cons 10 Pnt2)
      (cons 40 220)
      (cons 41 0.8)
      (cons 62 LyrClr)
      (cons 72 0.0)
      (cons 73 2.0)
      ))
Help please

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Entmake with text alignment notworking
« Reply #1 on: October 04, 2010, 10:39:11 AM »
You must use DXF code 11 for alignment.
Just put the same point in 10 and 11 and it should work.
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.

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Entmake with text alignment notworking
« Reply #2 on: October 04, 2010, 10:39:57 AM »
Text with alignment other than "left" uses DXF code 11 for the location, not 10.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

HasanCAD

  • Swamp Rat
  • Posts: 1422
Re: Entmake with text alignment notworking
« Reply #3 on: October 04, 2010, 10:51:18 AM »
CAB
dgorsman


Working
Thanks

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Entmake with text alignment notworking
« Reply #4 on: October 06, 2010, 09:02:55 AM »
Text with alignment other than "left" uses DXF code 11 for the location, not 10.
Thanks for the clarity 8-)
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.