Is it possible to duplicate a curve and text object (with a text field referring to the curve object name), so that the text field of the new text object, refers to the new curve object?
Current behaviour:
Curve A
Text Object: Curve A
↓ copy
Curve B
Text Object: Curve A
Requested behaviour:
Curve A
Text Object: Curve A
↓ copy
Curve B
Text Object: Curve B
If this is not possible, what’s a good workflow to work around this? I use object labels often and it is tedious to constantly re-select the correct object for each text field that is duplicated.
Not currently, but I know @trav has been thinking of ways to make this possible recently. We will probably need to develop a new syntax for text fields to allow something like this.
@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.
I have a grasshopper script that provides the functionality you need, listening for any curves on a specific layer and giving them a name & m2 label. The script assumes you are working in millimetres.
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.