I could use some pointers here. I am developing our company’s standard library in perspective. We are a large system integrator, so getting this right the first time is important. I am using the new drawing tools introduced in 8.3 for our svg’s. To give some background, we have a style we would like to stick with. This includes gradient colors on almost every object. For example: a valve that is in auto would have a purple head, manual would be yellow, faulted would be red. We want to incorporate a greyscale option since that is becoming more and more common in the industry. This means I would need a total of 6 gradients for just the head.
I couldn’t quite figure out how to tie a style to the svg elements, and also couldn’t quite figure out how to make a style with a gradient color. The simplest option to me seemed to have custom properties on the drawing with the color gradients. Then write a simple if statement to change color (based on greyscale, and feedback from the PLC). I have it working ok, but this will be a standard at my company for a long time. I want to keep it as simple as possible, and this feels a bit more messy than I would like. I am running into another issue that might be caused my some of the extra steps I am taking here.
What is happening is that some of the valves won’t show up when dragged into new views, or when opening views with valves. Luckily it seems isolated to designer, not client sessions. Still a bit frustrating, and makes me worried we will run into issues when we start to work on bigger projects.
If you change something on the broken valve properties, it will magically fix itself. For example, I toggled the “NormallyOpen” bit off then on, and now the valve shows up.
Again, I really want to nip these issues in the bud before I build out any more of the library. Any tips or “lessons learned” while developing a library would be much appreciated!


