Message 1 of 4

Not applicable
04-28-2021
03:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, how can I define text size (height) in the following code?
(defun c:pdm (/ ins str)
(and (or (> (getvar 'DWGTITLED) 0)
(alert "Save the drawing then try again!")
)
(setq ins (getpoint "\nChoose where you want to insert the file name : "))
(setq str (entmakex (list '(0 . "MTEXT")
'(100 . "AcDbEntity")
'(100 . "AcDbMText")
(cons 10 (trans ins 1 0))
'(1 . "")
)
)
)
(vla-put-textstring (vlax-ename->vla-object str)
"{\\fArial|b1|i0|c0|p34;\\C2;%<\\AcVar Filename \\f \"%tc4%fn6\">%}"
)
)
(princ)
)
Solved! Go to Solution.