Link Text to size

Hi,
Can someone give me an example of the correct way to enter the id in the below?
%<curvelength(“id”)>%

I tried this but it didn’t work.
%<curvelength(0077f0c1-145d-4145-9590-3f3f531d7868)>%

Id

Include the quotation marks around the guid, like this:

%<CurveLength("0077f0c1-145d-4145-9590-3f3f531d7868")>%

-Kevin

I still can’t get it to work. I saved a sample and attached it. I want to be able to 2d scale the line and have the dimension cha

Test2.3dm (739.7 KB)
nge with it.

Works here after editing your file, but I’m on V7 on macOS.

Test2_re.3dm (738.4 KB)

How are you entering this text? Have you tried using the Text Field button on the Edit Text dialog (or properties panel)?

-Kevin

I didn’t have access to my Windows pc earlier, here’s how it works with Rhino V8 on Windows (pretty much the same as V7 on macOS).

  1. Run _text command.

  2. In the dialog, click the Text Fields button.

  1. In the list at the left select CurveLength and then click the Select Object button.

  1. Click on the curve, dialog should update to show guid of curve selected.

  1. Click Ok

  2. Click Ok

  3. Click to place text.

-Kevin

Works thank you.