
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can someone help please with moving text to a new line:
my text in one line now like this:
Approx. Glass Weight 200kg @ 6.0m2.
I need it in two lines like this:
Approx. Glass Weight
200kg @ 6.0m2.
lisp code:
(defun c:GL ( / fae thk wgt frarr fwgt fwgtm far farsf fip )
(prompt "\nChoose Polyline or Hatch for area and weight calculation: ")
(setq fae (car (entsel)))
(Command "area" "e" fae)
(setq thk (getreal "\Thickness of Glass? in mm: "))
(setq wgt (* thk 2500))
(setq frarr (/ (getvar "area") 1000000))
(setq fwgt (* frarr wgt))
(setq fwgtm (/ fwgt 1000))
(setq far (rtos fwgtm 2 0))
(setq farsf (strcat "Approx. Glass Weight "far" kg @ "(rtos frarr 2 1)"m2."))
(setq fip (getpoint "\nChoose Text Insert Point:"))
(Command "text" "s" "IQ Text 2" "j" "MC" fip "00" farsf)
(princ)
)
Solved! Go to Solution.