Bug in BlockAttributeText in Rh8, and DWG export

Simple case. I have a block that contains multiline BlockAttributeText fields.


BlockAttributeText_Rh7.3dm (77.2 KB)
BlockAttributeText_Rh8.3dm (77.4 KB)

  1. The BlockAttributeText -field does not accept [space] (" ") as a value in Rh8, and when " " is inputted, the last value remains visible. This works in Rh7.

The last value clears after _BlockEdit, and key becomes ‘empty’. Rh7 retains " " value

  1. Export to DWG only retains the top line of the multiline text - so text is trucated. This is the same in both versions. Key/values are retained. Export “2018 natural” (Rh8) and “2007 natural” (Rh7)

Hi @Toni_Osterlund

The space bug was introduced in Rhino 8 SR10 and is fixed in SR11. You should be able to download SR11 by switching your updates to Release Candidates.

Thanks @Trav ,
I can confirm that in SR11 [space] works as a value.

In DWG export, multiline BlockAttributeText does not export correctly. Multiline exports correctly outside and inside block, but not if it contains multiple BlockAttributeTexts.


BlockAttributeText_Rh8.3dm (85.9 KB)

Thanks for the report. We’ll take a look at the DWG exporter and get this patched up.

https://mcneel.myjetbrains.com/youtrack/issue/RH-83671/DWG-export-Multiline-BlockAttributeText-issues

1 Like

Hi @Toni_Osterlund,
We are hitting a limitation with AutoCAD, not a bug in Rhino with this issue.

  • Rhino uses a text object and a text field to define a block attribute.
  • AutoCAD has a special object called an Attribute Definition that is not text. And it can only hold one attribute key.

So when Rhino exports to DWG and writes the first attribute field key from Rhino text, then it is done.

So to play well with AutoCAD, in Rhino you need to do this:

  • Keep each block attribute text field in its own piece of text.
  • Do not include spaces in your Tag names


When you export this block to AutoCAD, it will be very well behaved!

I think that Rhino needs an ExplodeText command that it can explode multiple lines of text into single lines of text. Currently if you explode any text it will be turned into curves, and that is not going to help here. An ExplodeText would make the updates on this file easier.

I will get this added to the wish list.
See my files attached.
Better BlockAttributeText_Rh8.zip (41.9 KB)

Hope this helps.
Sincerely,
Mary Ann Fugier

2 Likes

Thank you for the detailed explanation @mary .
The possibility to explode multiline text into individual lines would be a welcomed addition, and something that I have searched as a command in the past. Would be rather easy to script something like that as well.

In the DWG export, in this case, the “explosion” to single lines should happen automatically in the background - the user should not have to worry, nor check the results for correctness afterward.

Hi @Toni_Osterlund,
I talked to the developers about this earlier in the week before I replied to you.
The chance of getting it wrong is very high. Block attributes have been in Rhino for two releases now. This is the first time it has been reported. All the tutorials I do, use separate line of text.
So…
Unless there is a huge up tick with this issue, the decision to allow the user to fix with a hopefully a new ExplodeText command is the plan.

Now this discussion is part of a searchable archive so anyone else having the issue, can see the recommendations.

Sincerely,
Mary Ann Fugier

1 Like

@mary
I understand. But now that this is “shortcoming” is known, it should be made visible to the user.

The export dialog, letting the user know about the non-exportable objects, should also contain info about multiline BlockAttributeText export failing. This would give enough info to spot and correct the issue right away. It is easy to miss.

And currently, in my opinion, the dwg export is a bit too verbal. Each attribute is printed on the command line.

There is no downside to making a wish for a future Rhino.
Here you go.

RH-83788/Detect-Issues-with-BlockAttributeText-On-Export

Thanks,
Mary Ann Fugier