I try to do an ULP for placment on PCB. I have three channel of analog input (audio) and I name them X Y and Z. These three channels are similar.
I would like place manually only channel X and run an ULP for automatic placment of channel Y and channel Z.
My problem is I don't understand how I can in an ULP, I can read position (x y) of a part in channel X and create offsets for channel Y and Z
Someone have an idea??
RX1: X = 250 mils Y = 100 mils
the result should be for an y offset of 100 mils
RY1: X = 250 mils Y = 200 mils (Y = Value of X + 1 * y offset)
RZ1: X = 250 mils Y = 300 mils (Y = Value of X + 2 * y offset)