EEVblog® Electronics Community Forum
Electronics => PCB/EDA/CAD => Altium Designer => Topic started by: jmsigler on February 19, 2017, 02:04:14 pm
-
Hello, is there a way to use formulas inside of component properties. For example, say I wanted to move x-location of a pad to .1+.2 (mm) is there a way to do this? It seems like it is possible, but it is giving me weird results. For example, typing .1+.2 and hitting enter places the pad at 1mm instead of .3?
-
Omitting the leading zero always gives an error...
Try "0.1+0.2" (no quotes).
If you want an incremental move, you can also do: "X1+0.2" and such.
FYI: the names of parameters don't usually match, between the three places you can access them: they are often named differently between Parameter Manager / PCB List Panel, PCB Inspector, and PCB Filter. AFAIK, there is no comprehensive list of Inspector names, so you will have to guess a lot.
You can also do more complicated assignments, on certain (usually text) fields, when a selection gives you a "..." button on that field. The syntax refers to the same (Inspector) parameter names, and functions are Pascal style.
Tim
-
There is no support for expressions in object property dialogs. There is support in the PCB inspector and PCB list with ! representing the current value and supposed support for parameters/properties by name but it is not clear what parameters/properties are supported or what they are called.