Is there a way to hide programmatically a shape in a diagram in an extension?
How to hide a shape while using an API extension
Hi
![](https://uploads-us-west-2.insided.com/lucid-us/attachment/b25b3e3f-4945-499a-91df-9c09af58301c.gif)
If you wish to hide the content of your container, you can select the eye icon from the Context Toolbar. No one will be able to see the content of the container unless you select the eye icon to unhide the content.
If you are using Lucidchart, a similar result can be achieved by placing a shape on an overlapping layer and then toggling the visibility of that layer. Refer to our Add layers to a Lucidchart document article to learn more.
Please let me know what you’re seeking to achieve with your extension.
Thank you for your reply.
So how can I place my block onto a layer programmatically in my extension?
How can I create a layer programmatically in my extension?
Hi Richard.
The goal is to be able to hide Block, when its shapedata value has a specific value.for impact analysis diagram.
Reply
Create an account in the community
A Lucid account is required to interact with the community. You will be redirected to the Lucid app to create an account.
Log in to the community
A Lucid account is required to interact with the community. You will be redirected to the Lucid app to log in.
Login with SSO
Log in with LucidEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.