Author Topic: Arethmatic Formulas in Component Properties?  (Read 1360 times)

0 Members and 1 Guest are viewing this topic.

Offline jmsiglerTopic starter

  • Regular Contributor
  • *
  • Posts: 57
  • Country: us
Arethmatic Formulas in Component Properties?
« 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?
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21686
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Arethmatic Formulas in Component Properties?
« Reply #1 on: February 19, 2017, 07:32:15 pm »
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
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline Hensingler

  • Regular Contributor
  • *
  • Posts: 144
  • Country: gb
Re: Arethmatic Formulas in Component Properties?
« Reply #2 on: February 20, 2017, 01:29:19 am »
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.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf