In the given code, shape 1 has no shape elements in it. Shape 2 has all its elements, but the z-order of them is incorrect and half the shape is hidden behind the background element.
Thank you for contacting support. We managed to replicate the issues said. We have logged them as follows:
DIAGRAMJAVA-50125 - Can’t add “Vlan Interface” shape from the stencil file
DIAGRAMJAVA-50127 - Half visibility of second “Interface Normal” shape
Your post has also been linked to these issues. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.
Thank you for being patient. We have a good news for you that the issue id DIAGRAMJAVA-50125 and DIAGRAMJAVA-50127 have now been resolved. If there is no issue in the QA phase, then these fixes will be included in the next version of Aspose.Diagram for Java 4.0.0. Its release date is not final yet. We’ll inform you via this forum thread as soon as the new release is published.