- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to split the string below into two chunks to be able to implement in to a mtext:
"\\pxsm1;Trapezoidal profile sheet of the "loop" type, thermo-lacquered in RAL 9010 (white) color, resting on a metallic structure\\P\\PGutter and roof trims with 3mm thick bent steel sheet esp.\\P\\P\\ps*,ql;Covering of the Prefabricated Concrete Platform, (see construction details)\\P\\PSteel downpipes, galvanized and painted with enamel paint in RAL 1013"
I did this code for separating into chunks of 255 characters:
(while (> (strlen texto-temp) 0)
(if (<= (strlen texto-temp) 200)
(setq numb 1)
(setq numb 3)
)
(if (= c-atr 304)
(setq numb 304)
)
(setq bloquinho (cons numb (substr texto-temp 1 255)))
(setq blocos-250 (cons bloquinho blocos-250))
(setq texto-temp (substr texto-temp 256 (strlen texto-temp)))
)
it results in this list:
(
(1 . " construction details)\\P\\PSteel downpipes, galvanized and painted with enamel paint in RAL 1013")
(3 . "\\pxsm1;Trapezoidal profile sheet of the \"loop\" type, thermo-lacquered in RAL 9010 (white) color, resting on a metallic structure\\P\\PGutter and roof trims with 3mm thick bent steel sheet esp.\\P\\P\\ps*,ql;Covering of the Prefabricated Concrete Platform, (see")
)
But I want to the element 3. to have just 255 characters, not 263 as this website says (https://mothereff.in/byte-counter). Because of that, the Mtext elements disappear on the drawing paper and I cannot see it anymore.
What am I doing wrong?
Solved! Go to Solution.