TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: HasanCAD on October 04, 2010, 10:33:38 AM

Title: Entmake with text alignment notworking
Post by: HasanCAD 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
Title: Re: Entmake with text alignment notworking
Post by: CAB 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.
Title: Re: Entmake with text alignment notworking
Post by: dgorsman on October 04, 2010, 10:39:57 AM
Text with alignment other than "left" uses DXF code 11 for the location, not 10.
Title: Re: Entmake with text alignment notworking
Post by: HasanCAD on October 04, 2010, 10:51:18 AM
CAB
dgorsman


Working
Thanks
Title: Re: Entmake with text alignment notworking
Post by: CAB 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-)