Labels on by default for Points Input

Hi @mathieu1,

I’m using the Points Input component to let users draw a custom boundary, and I want the segment dimensions visible by default.

In the viewer, there’s a “Show Distance Labels” toggle (under the drawing options), and it does exactly what I need - but it defaults to off, so each user has to enable it manually every time.

I saw in the App Builder release notes that “Labels visibility can now be defined in Grasshopper for the Points Input.”

Question: How do I make “Show Distance Labels” default to ON for App users?

Thanks!

It is possible in the App Builder but this option is not exposed in the Grasshopper component yet. This will be possible from the next release. In the meanwhile, you can already control it by using a dynamic input (defined through a json object) instead of the standard one. However, this approach might be overkill for what you need, so I will let you judge if you want to go ahead and implement it or wait for the option to be exposed in the component.

Here is the dynamic input example:
260617_DynamicPointsInput.gh (23.2 KB)

Thanks for the guidance, @mathieu1

I’ve manually changed the “showDistanceLabels” to True in the GH file, but it still defaults to False in the SD App. Am I missing something else that needs to be changed manually?

I can reproduce this issue, our team will review it. I will let you know once a fix is available.

@Raitis This bug should now be fixed in the App Builder version 1.10.

Additionally, version 1.33 of the Grasshopper plugin includes options to toggle point and distance labels directly from the Points Input component (without the need to use a dynamic parameter).