Dimensions in Shapediver

Hi!

Is it possible to visualize the new data types (I’m interested specifically in the new dimensions) using the Add Builder components?

Hi Pedro, I am assuming you mean the new Annotation objects that come with Rhino 8?

We already made sure those work with the Export components (meaning you can create CAD files and export them from online models with annotations created in Grasshopper).

However, regarding visualization in the viewer, this is something we have to finalize yet.

If you are only interested in linear dimensions, most ShapeDiver users recreate them with lines and tags (2d and 3d text tags are supported in the viewer) at the moment. For other types of dimensions, this is a bit trickier. However, note that you have a workaround by exploding annotation objects into geometry and send the resulting objects to the display component:

Scripting might be necessary to control things like size and orientation of the text.

@mathieu1

Thanks for getting back to me.
Yes, these are the components I was talking about.
I need just linear dimensions, so I’m afraid I’ll have to take the workaround until they are available for the viewer ^^

PC

Hi @mathieu1 ,

I am using the same method to extract text entity as crvs. but, by default the dimension component extracts text with the default Rhino model units.
So, even when I change unit factor to ft inches, the text curves are generating mm curves.

Have you experienced this issue?

Best,
Tarang

Could you share a small definition showing the issue? Are you talking about a problem happening locally in Rhino/Grasshopper, or only after uploading to ShapeDiver?

This is happening locally. Attaching the script for you to recreate the issue.

GH Dimensions to text Curves.gh (21.3 KB)

The toggle in your definition works for me, it successfully switches between mm and inches:

Is this the part that does not work on your side, or am I missing something?

Yes this is that part. I see that you have disabled the unit settings.
May I know what rhino version are you working with?

Hi, in my definition I have these dimensions that I am creating using the Rhino’s native gh dimension components. Notice how in this dimension we have that curve offset in the middle of the dimension.

However, after exploding it using the explode component to extract the curves and text, for two of the dimensions the curves are joined even though they were separated from the middle in the dimension line.

@trnggupta91 I am working with Rhino 8 SR18 on Windows. Are you still experiencing issues?

@Soumitra_Das Could you share a minimal definition showing the problem? This looks like an issue with the Grasshopper explode function, but I would like to test it.

Hi Mathieu, I am attaching the definition here. In the script I have highlighted the area in blue where we are facing the issue.

Also another bug, I noticed was if I put text location below the dimension line. It still shows the text in the center of the dimension line.
Forum post.gh (44.2 KB)

My version is Rhino 8 SR16.

Those are both issues with the Annotation components, and not strictly related to ShapeDiver.
I can confirm both issues:

  1. In the “Annotation Dimension Settings” component, the option to set the text under the line does not work, it remains in the center:

  2. When exploding a dimension where the text is aligned in the center, it gives a continuous line instead of the two separated lines shown when displaying the dimension:

The definition posted by Soumitra above shows clearly both issues.

@kike I seem to remember you deal with these components, if not please tag whoever may help at McNeel :slight_smile:

Hi @mathieu1,

The previous last option (2. Text below dimension line) on the ‘Text Location’ input is not implement by Rhino itself. So is now removed from Grasshopper to avoid this issue.

Now only 0 and 1 are valid values.

Thanks @kike!
Any update for the continuous dimension line even after exploding?
Also exploding a dimension that is defined in imperial units on exploding changing to metric or document units.

I’ve been testing here and looks like the issue with the continuous line after exploding happens when the ‘Text Location’ value is 2, which is not possible anymore. If the ‘Text Location’ is set to 1 the line should split when exploded.

About the issue with the units could you provide a .gh file sample the shows it?

Here’s the file with units issue
GH Dimensions to text Curves.gh (21.3 KB)