Something like this, but for entering multiple user text via dialog box would be handy.
If you have multiple keys attached to one items it will allow you change both values. What it doesn’t do, and looks like @pascal took the same route, is you are not able to add new keys.
Super script, both rvb and py.
But, one can only edit and existing value. It would be awesome if one can add a new value or match the usertext with another object.
Is this feature (UsertText Panel) planned to be implemented in Rhino WIP/6?
Hi Jeff - so far there’s not any plan for this as far as I know.
Thank you for your response!
I am just getting to know Rhino and seem to struggle a bit with your Scripts, and the Commands “GetUserText” and “SetUserText”. My aim is to create a frame for a mechanical drawing, which can be imported on a Layout, and after that there shall be some list where all informations of the frame like “date of drawing”,“author”,“drawing numer” etc. can be typed in.
In Autocad this function can be archived with the “attdef” command.
The Problem with the “SetUserText” starts after selecting the objects (in my case the Text). Rhino now tells me to choose a Text Key, and(or?) attach to an attribute and an object. When I try go “GetUserText” it just says that it does not find my key.
Your Makro works, as far as I can tell, since i can edit my inputs from “SetUserText”, but i am no step closer to my Input-Options.
I hope i am not that far off-topic, since i try to chance attributes of an block.
Rhino has a bunch of built in text fields that I think would handle what you are after. Text fields can also reference Document User Text and Object User Text.
Just bumping this request.
I would be great to be able to add things like pageformat and author in your layouts in a simple way. Acad has it. SW has it. Rhino should too
PS: A “current page number” would be great too. Easy management of drawing numbers…
EDIT: Sorry - pagenumber is there…
Rhino 6 has a object text properties panel… is that what you mean?
I would like to be able, in an unconveluted way that everybody can understand, to be able to populate layouts with predefined text inputs. So if I in a text object in my layout write “1-100” or “Morten” (author), the same text is repeated elsewhere, in for example my filename description in title block. Pagename attribute already exists. So autogenerated filename description could be: PageName Author Scale RevisionNumber. Author, scale and revision number would simply be written in dedicated text table, or alternatively have a simple way to reference other text inputs (making a lot of blocks is not very optimal/user friendly either).
So I think what you are after does existing. You will need to need to create a block with document user text properites. Then reference that block into your file and file out the info in the under the document properties. ttlb info.3dm (32.2 KB)
Page Test.3dm (48.0 KB)
It is useful feature.
Thanks for the description, but the wish was for an “unconvoluted way” without blocks. Simply create a text/field table, where you can easily manage and input info (it should be layout specific). So every level of user intuitively understands, whats going on. Alternatively having linked text fields, so changing a text one place, repeats it another place.
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:
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…
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?
Now that the user text is available in that panel, why do you still want to use a script?
That is my question. I think the script is pretty much obsolete now, and not needed. Unless I am missing something.