Toggle dimension tags using API

I’m trying to toggle the preview of dimensions assets via the API with

api.scene.toggleGeometry([],assetsScenePaths);

but while the dimension lines properly toggle on and off, the text tags don’t. Can this have to do with the different nature of the related grasshopper components?

image

image
image

@post8

This has indeed something to do with the different nature of the 2D tags but it should work. Thanks for pointing this out, our team is working on the solution.

In the meantime, you can use CSS visibility:hidden property for the shapediver-domElements class to toggle the tags.

More on 2D tags in this post:

1 Like