In this part of code,
- How to create this text as annotative?
- String did not converted to capital.
(entmakex (list '(0 . "TEXT")
'(100 . "AcDbEntity")
'(100 . "AcDbText")
(cons 40 250)
'(8 . "S-BEAM-TEXT")
'(7 . "SDC-TEXT") ;Text style
'(10 0.0 0.0 0.0) ;The base insert point of the text (ignored when not left aligned)
(cons 11 (polar pt (+ (/ pi 2) ang) ds)) ;The insert point of the text when not left aligned
(cons 1 "Bx") ;String
(cons 50 ang) ;Rotate the text to follow the line/pline
(cons 72 D72) ; Horizontal text justification type 1= Center
(cons 73 D73)
))
(command "DDEDIT" "L" "")
(setq entity (entlast))
(setq dxfdata (entget entity))
(setq old-dxf (cdr (assoc 1 dxfdata)))
(setq new-dxf (cons 1 (strcase old-dxf)))
(setq dxfdata (subst new-dxf old-dxf dxfdata))
(entmod dxfdata)