We noticed a difference in behavior reading DWG 2018 files compared to older versions.
Reading a DWG 2018 file and trying to get the text of a multiline attribute, we use the following code:
CadAttrib cadAttrib = … (getting the cadattrib from the document)
var theValueFromAspose = cadAttrib.MultiText.FullText;
In a normal scenario, this works fine
(but fyi; it seems that for DWG 2018 files, newlines are returned inside the string as “\P”, this is not the case for older DWG files, but this is no problem and something we already account for in our code)
So for example, the string here would be “text on line 1 \P text on line 2”
However, it seems that if the block has width scaling set (in our case to 0.9), the string returned is then:
“\W0.9000;text on line 1 \P text on line 2”
Could you advise me how I can get the text without any of that metadata in front?
I could easily foresee this and remove the preceding \W0.9000; (or other number if scaling is different), but perhaps there are other things that might get injected here for some reason as well that I don’t yet know about.
I can provide a sample if you want.