Bug - user text in grasshopper

Hello,

I’ve found an issue with Attribute user text and Text fields in block.

This syntax is used in a text object inside the block -
%<UserText(“block”,“Key”,“Prompt”,“Value”)>%

Value for a specified Key is displayed.
Prompt and Default value (Value parameter) are displayed when inserting the block manualy.
image

image

Value can be changed manualy per block instance to show different text in each.

Using the full syntax in block definition, grasshopper side looks OK. Key value pairs appear to be correctly modified. But model shows default text value.
This happens for all U-text grasshopper component settings. The key cannot be even deleted using this component.

Using minimal syntax (%<UserText(“block”,“Key”)>%
“Object reference not set to an instance of an object” error is thrown on Cache component.

Expected behaviour:
Ability to insert block instances from grasshopper, some keys at default values, some modified per instance.
Ability to modify existing instances.

Use case:
I have large layouts consisting of dozens of A0 pages. I need a title block on each page. If I wanted to number them by hand, I would have stuck with AutoCAD.

References:
Attribute user text - Attribute User Text properties | Rhino 3-D modeling
Text fields - Text fields | Rhino 3-D modeling
User text Rhino 8 tutorial - Rhino - Grasshopper: UserText

Thank you in advance.

P.S.
This supersedes my previous post: User text not in Rhino

Hi @Vojtech_Liska,

I’m working in this area.
Is there any minimal .gh file you can share?
May I also ask your Rhino version?

Thanks.

Good morning,

see the attached files. I noticed one more thing. The block with minimal definition cannot be even inserted, regardless of user text modifications. Maybe it’s a cache issue?

Edit: Full/Minimal definition is done only for PART key
Edit2: Rhino Version 8 SR9

Modifiy Full definition
AUTOR - nothing happens
PART - nothing happens
NewKew - NewValue added to instance

Modify minimal definition
Error is thrown on chache, no keys modified

Insert Full definition
Same as modify

Insert Minimal definition
Same as modify

TestTitleBlock.3dm (84.1 KB)
TestTitleBlock.gh (7.7 KB)

Hi, @kike,

have you had a chance to take a look at it?

Regards,
V.

I looked at this today using 8.11. I needed to replace the Cache components, but it is working.

I know we have been fixing some logic when multiple caches are running on the canvas.

Please see if these work for you.


TestTitleBlock_SD.gh (7.3 KB)
TestTitleBlock_SD.3dm (111.9 KB)

2 posts were split to a new topic: Rhino 8.11 will not start. Newest update

I updated my graphics drivers, got 8.11 running and it works. Many thanks!