Curve length variable/dim in layouts

Hi all,

Trying to dimension the edges of a curved object in layouts in rh8 mac.

Ideally, I’d like to use two curves in one text field – we’re cutting a rectangle out of kerfcore, and I want to show the cut dimensions, like this: 3/4" KERFCORE: 45-3/4" x 76-13/16"

Here’s the problem:

If I do DimCurveLength, each individual one works fine.

When I try to edit the leader, the fractional component pops out of the formula, like this:
%<CurveLength("d1a7b1df-73f6-44ba-8b1d-20e9f43f262c:2,12")>%[[3/4]]

When I try to use the same formula in a text field (because I want both dims in one leader), it converts inexplicably to decimal.

I can meticulously do each individual DimCurveLength, then copy one into the other, then delete the extra fractions, then add " markers, but this is a LOT of work for one little dimension leader.

Including a screenshot showing all these possibilities. Here’s the text field for the upper left one (after copy pasting, each time the fraction replicates itself):

[[3/4]]" KERFCORE:
%<CurveLength("d1a7b1df-73f6-44ba-8b1d-20e9f43f262c:2,12")>%[[3/4]][[3/4]] x %<CurveLength("9eef5374-7c80-4f80-8715-84f97e33bf76:2,7")>%[[13/16]][[13/16]]

Here’s the one for the upper right:

[[3/4]]" KERFCORE:
%<CurveLength("d1a7b1df-73f6-44ba-8b1d-20e9f43f262c:2,12")>% x %<CurveLength("9eef5374-7c80-4f80-8715-84f97e33bf76:2,7")>%

Hi Sam -

If I understand all of this correctly, in a test here, that seems to work as expected:

The values in the text field use the formatting of the annotation style that is used for the annotation.

Please post both the output from the Rhino SystemInfo command and a 3dm file that you are having problems with.
-wim

Copy about the annotation styles, that totally makes sense.

Here’s the systeminfo and an example file:

systeminfo.txt (12.5 KB)

Untitled.3dm (3.4 MB)

Hi Sam -

So in that file, when you delete the superfluous [[7/8]]s at the end of the string all is good?


-wim

Yes but if you edit the leader by double-clicking, it pops back up. For example, double clicking the 8-7/8 leader tacks the [[7/8]] back onto the end, so if you put any text at the beginning, it’s doubled.

Also just marking that DimCurveLength doesn’t honor the suffix in the annotation style: