Valitypes

Valis can be of a certain property, e.g., mass, cost, power, length, etc. A type has a name, a unit, and can have a default formula. With types, you can do calculations such as "sum of children", in which the Valis with the same type in sub-Blocks are added together.

Creating New Types

Creating and editing of types is performed on the Settings – Valitypes page (accessed by clicking the  icon at the bottom left, selecting Settings from the menu that appears, and then selecting Valitypes from list in the left-hand pane). All your currently existing Valitypes are present in the list in this view.

To create a type, click the  button at the bottom right. In the New Valitype window that opens, enter the name, description, unit, and formula (or value) and click  to add a new type.

The formular (or value) is pre-populated when adding the Valitype to a Block, but you can always change it to another formula afterwards.

By enabling the add by default checkbox for a Valitype in the list, a Vali of this type will be automatically added to newly created Blocks that you create. Double-click the cell in the add by default column for a type and select the required state (True of False) from the menu that appears.

This setting is user-specific, so if you change it, it will only affect the Blocks that you create.

Valis with Type

A Vali with a type has the same name as the type, and you can only have one Valitype per Block. When you add a Vali and start typing the name, you will get a list of all existing types to choose from.

Adding Valitypes to a Block – when you start typing in the Name field, a suggestion of existing Valitypes will appear.
Adding Valitypes to a Block – when you start typing in the Name field, a suggestion of existing Valitypes will appear.

When adding a Valitype (e.g., Mass), the unit of the Vali has to match or be convertible to the unit of the Valitype. For example, if the Valitype Mass has unit kg, you can add a new Mass with unit g, but not with unit s.

For values that you can sum up (e.g., the total mass is the sum of the mass of the sub-Blocks), you can do this automatically with the 'sum of children' formula, by specifying soc() in the Formula and unit field. This function sums Valis of the same type in the sub-Blocks and gives you the total value.

Apart from soc(), there are other inbuilt functions you can use in Valitypes. To learn more, refer to the Valis and Calculations page.

If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.
Feature Availability

The features available to you depend on which Altium solution you have – Altium Develop, an edition of Altium Agile (Agile Teams or Agile Enterprise), or Altium Designer (on active term).

If you don’t see a discussed feature in your software, contact Altium Sales to find out more.

Content