SVG not displaying correctly

Hi all,
I have a problem with an SVG symbol that I use as a pipe.
In designer I see it like this:


But in the browser I see it like this:

Up until last week everything was working fine. I don't know what changed :frowning:
The problem is that it does it on all pipes in every view.
has anyone ever had a similar problem?
Thanks a lot:

I also notice this misalignment,

Seems similar to this:

If I understand what you're showing in the screenshot, you have separate SVGs for individual pipes.

I think victor is right about what's happening if that's the case.

SVGs won't necessarily stretch the same unless they are all in the same view scale. You can layer SVG on top of each other if the viewbox for all of them is the same size but generally you want to have all of the drawn objects in the same viewbox.

That said, I don't prefer using svgs for pipes in Ignition 8.1.x. The drawing tools in 8.3 may change my opinion on that but I feel like it creates a lot of extra effort in managing things to use SVGs for pipes because the view boxes will stretch and the drawing will float around.

@Steve_Laubach I agree,
I'm thinking of switching from SVGs to labels, as suggested in this post:

Could I have the same stretching problem using labels instead of SVGs?

If you slightly change the size of the browser in either or both axes (horizontally and/or vertically), does it fix the alignment? If so, you're seeing the issue I raised a bug for in the post Victor linked

If I slightly change the browser size in one or both axes (horizontal and/or vertical), the alignment corrects itself on some elements but not on others. The thing that I can't understand is that until last week I had no problem. It must be said that on the company computers there was a Windows update... let's not say that.

I say that running Windows in production environments is engineering malpractice. Y'all are welcome to chime in.

6 Likes

The more we use Linux in production environments the more on board I am.

2 Likes

seems like an interesting suggestion :slight_smile:
tomorrow I will try to propose this topic to my bosses.
Could you please suggest me some stable "distro" that I can try with ignition?

Thanks in advance!

I'm not a Linux expert. My boss does the Linux configurations. We're using debian on several internal development systems.

I think we're using ubuntu in the field on a production installation.

We haven't had any problems yet in either of those.

I believe there's been some weird issues with on-screen keyboards on some distros, and while I like Kubuntu for Vision projects that use the Ignition OSK, for Perspective projects, I've found PopOS works better.

The only thing I'll say about moving to Linux is that while I love it, a lot of other guys I work with and many clients have absolutely ZERO experience working with it, so I get called anytime they need to do anything at all (change an IP, update Ignition, etc). No matter how much I encourage them to learn it, no one does.

3 Likes

Because it's like learning a new programming language that you're only going to use every so often

That's one of the reasons I run my primary workstation with Linux. So I am using it all the time.

2 Likes