Symbol not exported in block diagram

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.

Hi Hsw,

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.

Best regards,
Jick Yeung

Sorry it is only DPDT that is failing, the DPST seems to be fine (I did check to make sure). My mistake for mixing them up in my initial post.

I was able to replicate by reinstalling, using the following steps

  • move .config/VisualParadigm away (to be sure no invalid config)
  • move Visual_Paradigm_16.2 away
  • tar xf Visual_Paradigm_16_2_20210101_Linux64_InstallFree.tar.gz
  • start and open a blank Block Diagram
  • add shapes for engineering - Electrical
  • drag the DPDT switch
  • edit the shape and the XML shows:
<shape aspect="variable" h="62.25" name="DPDT2" strokewidth="inherit" w="57.75">
  <connections>   
    <constraint name="NW" perimeter="0" x="0" y="0.227" />
    <constraint name="NE" perimeter="0" x="1" y="0.05" />
    <constraint name="E1" perimeter="0" x="1" y="0.39" />
    <constraint name="E2" perimeter="0" x="1" y="0.61" />
    <constraint name="SW" perimeter="0" x="0" y="0.793" />
    <constraint name="SE" perimeter="0" x="1" y="0.95" />
  </connections>
  <foreground>
    <restore />
    <rect />
    <stroke />
    <ellipse h="6" w="6" x="36.75" y="21.25" />
    <fillstroke />
    <ellipse h="6" w="6" x="15.25" y="11.25" />
    <fillstroke />
    <path>

Hopefully this is clearer than my first message.

This is running on: Ubuntu 20.04.1 LTS focal

Hi Hsw,

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!

Best regards,
Jick Yeung

1 Like

Hi Hsw,

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.

Best regards,
Jick Yeung

1 Like