While creating a block diagram I wanted to illustrate a switch function. I added the Electrical symbols to the icon panel and added a few different symbols checking that they would be clear in an exported PNG file. However the one I really wanted to use was the DPST switch - it displays nicely in the diagram and I can change the line thickness, but the exported PNG only has blank space. The DPST is the only symbol that does not appear to export, I tried thinks like diode, vacuum tubes and other switches.
I did find a workaround, if I select the DPST and click edit shape to look at its XML
then delete the <restore /> i.e.:
<shape …
…
<foreground>
<restore /> ← delete this line
<rect />
…
</shape>
I am not sure if this is the correct thing to do, but it does allow the DPST to show up in the exported PNG.
Thank you for your post. We tried dragging a new DPST symbol to a diagram, checking the code appear after clicking “Edit Shape”, but did not see any element in the code. Could you recall what you have done to the problem DPST symbol? Meanwhile, I will also share your case with our engineers to see if they have any ideas.
We can successfully repeat the problem. Thank you for your detailed steps. I have asked our engineers to check and fix the problem. When a fix is ready, I will post here. Have a nice weekend!
I am glad to inform you that the problem of not having the DPDT shape rendered is fixed. Please try. Feel free to let us know if you have other questions.