hexagon logo

Learning expressions

Does anybody know if Hexagon offers a (more or less) programming class to learn to use expressions? I've been wanting to get started on these, and reading through the core files. I can think of several ways at least that they can be used here. Locally there is a metrology shop that offers a four hour course, but I took Java in college and as I recall programming isn't something you pick up in four hours.
Parents
  • The simple short-short version is:

    • Anywhere you have a number that can be edited in the Editwindow, you can insert an expression instead (there are probably some exceptions, intended or unintended...)

    • Expressions can contain variables which get their value from ASSIGN commands

    • Pressing F9 on an ASSIGN command, and then clicking From... opens up the expression editor, which is a great help in finding out what functions exist, what values can be fetched from features, dimensions, alignments etc.

    • Pressing F1 (Help) in the expression editor gives more info




    +1

    It's a good way of learning as the drop lists are dynamic - i.e. if you select features, the next list is populated with a list of features to pick from, pick one of them and the next list is populated with a list of properties to pick from.
Reply
  • The simple short-short version is:

    • Anywhere you have a number that can be edited in the Editwindow, you can insert an expression instead (there are probably some exceptions, intended or unintended...)

    • Expressions can contain variables which get their value from ASSIGN commands

    • Pressing F9 on an ASSIGN command, and then clicking From... opens up the expression editor, which is a great help in finding out what functions exist, what values can be fetched from features, dimensions, alignments etc.

    • Pressing F1 (Help) in the expression editor gives more info




    +1

    It's a good way of learning as the drop lists are dynamic - i.e. if you select features, the next list is populated with a list of features to pick from, pick one of them and the next list is populated with a list of properties to pick from.
Children
No Data