@Benjamin3@stevebaer I can think of a few ways to make this work, I can also see several
potential “gotcha” scenarios that would possibly make it overly complicated.
It seems to me that something like an auto object label would be the ideal workflow for this case? Meaning, let’s say that you could select geometry and the labels are generated off of some form of style template?
I’ve built a very simple grasshopper solution, with a live pipeline, ensuring any curve on a specified layer has an accompanying text label with the curve name, but it feels clumsy to use Grasshopper for such simple tasks, and doesn’t work well when collaborating on a file.
@benjamin I’m not sure this can easily be a part of Rhino 6 as the workflow seems pretty customized. However, with that said I took a few minutes this morning to put together a quick Rhino 6 plugin with a command called DuplicateFromNameTag which should hopefully do what you want. Here’s a video on how to use it as well. DuplicateFromNameTag.rhp (42 KB)
That’s great, and thanks for sharing the code, I will have to dig in to it later.
What is still missing is the ability to duplicate an object (with multiple user text attributes) along with its corresponding text elements (beyond just its name). See below for an example of a page and title frame, with a number of text attributes, along its corresponding text elements.
As has been documented elsewhere, title ‘blocks’ with text fields don’t really work in Rhino, and having the ability to duplicate a page and title frame, with the correctly linked text fields, would save so much time in setting up drawing sets.
@benjamin so what it sounds like you’re really after is to select a Text annotation or rhino doc object and duplicate all document objects/annotations that have some association with that selected object and update all of the associated functions that might be on those objects/annotations? wow that was a mouthful, glad I was able to type it and not have to say it out loud.
regarding my problem (please see my post below) I checked your C# code of the “DuplicateFromNameTag.rhp”.
And I think its close to what I am looking for. But I am not able to change it myself.
Can you please adjust this (if you have time, of course) to the following needs:
“Select” a bunch of Objects (Text-Blocks, Curves, Dimensions, Blocks, Hatches ,…)
"Copy and update all GUIDS in Text-Blocks to the new copied objects
I think it would be useful for a lot of users.
In my case it is a plan drawing with Text-Blocks which display the area of rooms.
These Text-Blocks get the area from a referenced Polyline or Hatch.
To quickly test variations of a plan layout it would be really helpful,
because it takes a lot of time to reference all Polylines/Hatches again and again.