|
发表于 2002-11-20 13:45:00
|
显示全部楼层
(defun #m_style(stynam styw styo styxw styzw / en);;造字型
(setq e(tblobjname "style" stynam))
(if e (progn
(setq en(entget e)
en(cy_asubst en(list
(cons 2 stynam)
(cons 41 styw)
(cons 50 styo)
(cons 3 styxw)
(cons 4 styzw))))
(entmod en))(progn
(setq en(list
'(0 . "STYLE")
'(100 . "AcDbSymbolTableRecord")
'(100 . "AcDbTextStyleTableRecord")
(cons 2 stynam)
'(70 . 0)
'(40 . 0)
(cons 41 styw)
(cons 50 styo)
'(71 . 0)
(cons 3 styxw)
(cons 4 styzw)))
(entmake en)
) )
)
;;(#m_style "ddd" 0.8 0 "romans.shx" "dxfs.shx")没有后者为西文romans,romanc,standard,
;;;;建立字型
(#m_style "standard" 0.6 (/ pi 12) "romans.shx" "")
(#m_style "dxfs" 0.7 0 "romans.shx" "dxfs.shx")
(#m_style "s" 1 0 "romanc.shx" "s.shx")
(setvar "textstyle" "dxfs") |
|