PDA

View Full Version : ARC Valves



MonkeyBoy
02-02-2010, 06:33 AM
Has anyone created a class for ARC Valves?
It should be similar to a 3-Way valve but have the availability of a reduced branch, like a reducing tee.

WiZardOz
02-02-2010, 02:41 PM
I wouldn't bother with setting up a class for this .... try changing the following in the CLASS.INI File

Find [AT_VALVE_3WAY]
change PORT_KEY=TeePorts to PORT_KEY=RedTeeBranchPorts

I haven't tested this .. but that's the first thing I would try

MonkeyBoy
02-15-2010, 12:03 PM
Thanks for the suggestion. It recognizes there is a difference between the main and branch sizes. It now forces the connecting component to the branch to match reduced size. However, the draw routine still draws the valve with all 3 ports the same size.

MonkeyBoy
02-15-2010, 12:49 PM
Found earlier thread that talks about this also.
Thread name is "3-way control valve"

MonkeyBoy
02-16-2010, 06:09 AM
Made changes to two files, and the Yarway 3-way valve with reducing branch now works.
First file was CLASS.INI
Find [AT_VALVE_3WAY]
change PORT_KEY=TeePorts to PORT_KEY=RedTeeBranchPorts

Second file was A3VALVE.EBS
Each line in the Draw End Symbols section called at_drawEndM. Changed last two lines to call at_drawEndR and at_drawEndB.

'// Draw End symbols
Call at_drawEndM(compID, end1, portPos(0), port1Dir, drawMode, viewVec, "Port1")
Call at_drawEndR(compID, end2, portPos(1), port2Dir, drawMode, viewVec, "Port2")
Call at_drawEndB(compID, end3, portPos(2), port3Dir, drawMode, viewVec, "Port3")