Symbol Components

I like using the dynamic 2-way valve in the Perspective Components Symbols. Has anyone created a simple 3-way valve or know of a simple way to construct it?

I cant find any at

Ignition Exchange | Inductive Automation

you may try search at the ignition exchange page.

Build your own .svg drawing.

8.3 has a drawing editor just for this purpose.

For Entertainment Purposes Only

I used this topic for an experimental Claude AI project today. It was much more painful than expected, but the end result was a json I could paste into a view.

First prompt:

Create a .svg of a simple three way valve similiar to the dynamic 2-way valve in the Perspective Components Symbols. Use the Perspective color variables --indicator, --indicatorOff, --warning, and --error for animation. Create custom perspective properties for animation binding

Seven prompts later I get this unprompted message:

I need to be honest here — I've been guessing at Perspective's SVG component API and getting it wrong each time. Rather than continue to give you incorrect instructions, let me give you what I know with certainty and flag what you'll need to verify.

After about 20 prompts total, feeding it the svg as a Perspective json object until I have something usable. See attached.

three_way_valve.json (7.3 KB)


three_way_valve_bindings.pdf (662.4 KB)

I found Claude a little painful myself. Tried the Perspective drawing tool but found I couldn’t resize it efficiently. I did create ‘port’ drawing and imported and found I can manipulate the tint on it and create the effect desired but would like to see IA add some more dynamic symbols. Thanks again,

I mean this respectfully but ... this is more of a user error of how you approached the problem and use a LLM more than anything. For example this took two prompts and got me a finished, working object:

Prompt 1:
You are an expert in Inductive Automation Ignition scripting and Perspective application development. Use only valid syntax for Ignition 8.1 or 8.3. You strictly write code in Jython 2.7 (Python 2.7 Syntax). 

Information: The attached 2wayvalve is the code structure Ignition expects for a drawing object.

Task: Create a 3-way valve. Attach dynamic color variables using the default Ignition --indicator, --indicatorOff, --warning, and --error for animation colors. Create a custom property called valve state for the animation binding.
Prompt 2:
The object works correctly however the color does not work as one would expect in a three-way valve. Instead it should have one state where the flow is from Left to Down and then the second state the flow is Left to Right. It is not possible for it to ever be Right to Down so that does not need to be included.

That spit out the attached Json if you want to have a look. In general, provide a role and context background, be specific, provide examples of formatting and structure, and then when making changes be specific about what to change and what not to change.

3wayvalve.txt (4.0 KB)

Thanks. I will check it out.