程序最后加上这段
- (defun m_DrawText (m_FontStyle m_AlignmentStyle m_AlignmentPosition
- m_TextHeight m_Rotate m_Text
- / ztb
- )
- (if (setq ztb (tblsearch "style" m_FontStyle))
- (if (> (cdr (assoc '40 ztb)) 0.0)
- (progn
- (command "text" "s" m_FontStyle
- m_AlignmentStyle m_AlignmentPosition
- m_Rotate m_Text
- )
- (setq ztb (entget (entlast)))
- (setq ztb (subst (cons 40 m_TextHeight) (assoc '40 ztb) ztb))
- (entmod ztb)
- )
- (command "text" "s" m_FontStyle
- m_AlignmentStyle m_AlignmentPosition
- m_TextHeight m_Rotate m_Text
- )
- )
- (m_DrawText
- "STANDARD" m_AlignmentStyle m_AlignmentPosition
- m_TextHeight m_Rotate m_Text
- )
- )
- )
|