User Text as a Property

Thanks for the Replies. After all, with the new Rhino 6 i now have a drawing-frame with included text via DocumentUserText for “author, pagecount, date, project, etc.” done.

This works fine for me, but my superior wants to use rhino in a larger scale for the construction in the future. For this i need to finde a more user friendly alternative than clicking around in the Document User Text. This will just produce errors, erased Keys, etc.

So i plan on integrating some kind of script like the previously attached. My Plan is, that first the user imports the Template drawing frame with placeholders (name=name, date=date). If the User klicks on the Block of the Frame, i want it to open a Box, or List like the ones prior in this thread, where they only can change existing values, and if they let the value empty, an automatic placeholder is set. So there is not the danger of someone “breaking” the template.

Problem is: My scripting is self taught and very limited. Is there some tutorial, or FAQ or maybe even just the code of the prior scripts which got deleted appearently, so i have a starting point?

All the ones i found until now are explanations on the rhino commands, which do not help me that far:

https://developer.rhino3d.com/api/rhinoscript/user_data_methods/user_data_methods.htm
https://developer.rhino3d.com/api/RhinoCommon/html/Properties_T_Rhino_DocObjects_TextObject.htm
http://docs.mcneel.com/rhino/5/help/en-us/information/text_fields.htm

Best Regards, and sorry for dragging that Thread out of the deeps of the past.

Hi Boreas - I’ll see if I can make something that works…

-Pascal

Thank you very much!

A little bit late to the party, but it is possible to adjust this script to actually show the value when the fields are created using the Fx button?

Hi -

Just wondering…
Now that the user text is available in that panel, why do you still want to use a script?
-wim

That is my question. I think the script is pretty much obsolete now, and not needed. Unless I am missing something.

Hi Everyone!
As an internal tool we have developed a plugin to manage user text key-values in a more efficient way, here are the core functionalities:

Instead of clicking through endless properties panels, UserText DB gives you:
:high_voltage: The Live Data Grid: A seamless, Excel-style interface to view and edit your entire model’s metadata instantly.
:bullseye: Bi-Directional Sync: Select objects in Rhino and they highlight in the grid. Select rows in the grid and they highlight in Rhino.
:brain: Smart Batching & Dropdowns: Auto-populating dropdown menus eliminate typos, while the batch editor lets you update hundreds of objects in a single click.
:artist_palette: 3D Audit Mode: Instantly color-code your live Rhino viewport based on any metadata column to visually QA your model.
:counterclockwise_arrows_button: Excel Interoperability: Export your model data to CSV, edit it with your team, and inject it straight back into your 3D geometry.

We are launching this to help bridge the gap between pure geometry and heavy BIM. We are beta testing it now, in case anyone is interested: UserText DB is now available to install directly via the Rhino 8 Package Manager (search “UserTextDatabase”)!

:open_book: Full documentation, features, and workflow videos here: GitHub - ENZYME-APD/UserTextDB-Public: Repository to share documentation and distribute built packages · GitHub