DesignCAD 2019 and DesignCAD 3D Max 2019 now available for sale! OR

Multiline text from Basiccad
Read 162 times
October 16, 2019, 11:56:43 AM
Is there a way to use Basiccad to read Multiline text?


* October 21, 2019, 03:00:13 PM
Is there a way to use Basiccad to read Multiline text?

Hi Rob,

Select the multiline text entity

ne=sys(9) 'archive number of entities


Result will be (sys(9)-ne+1) text enities of type 13, beginning at ne.

Simplest way to deal with these is to edit them individually and then do a GroupDefine to create a TextBlock that matchs the original Multiline Text entity format identically.

But if you want to open the editor using the same text lines, you can use:


This commnd appears to be undocumented, but syntax and most parameters can be found by executing "macro record")

The only important parameter that cannot be calculated from a simple examination of the exploded text is ">linespacing", without which it is impossible to duplicate the original Multiline Text enitiy as if using the editor in the infobox.

If you can derive  an algorithm for this, please let us know.


PS: Hint to IMSI: A query parameter, or a sys() variable to allow user to find the line spacing in an existing multiine text entity would be helpful.

« Last Edit: December 04, 2019, 10:08:47 AM by bdeck »


October 21, 2019, 06:44:33 PM

Evaluate sys(9), duplicate the m-text, explode, each line and each change of font/style will be a separate text entity but the new entity id's will be in the order the m-text is written so use the entity count over the starting sys(9) to select and pass the text string to string variables... something like that.



October 24, 2019, 01:08:17 PM
Thanks for the responses.

I was hoping that by now they would have developed some way of reading it directly or writing it into a text file. I will stick with Text Blocks for now.