Variable Value
.Name "Tutorial: How to use Selectable component properties."
.Title "Tutorial: How to use Selectable component properties."
.Kind "page"
.Type "tutorials"
.IsPage true
.IsHome false
.Next Page(/tutorials/usage/drawing-header/
.Prev Page(/
"draft": false
"iscjklanguage": false
"linktitle": "Selectable component properties"
"title": "Tutorial: How to use Selectable component properties."
"weight": 11
.Section "tutorials"
.CurrentSection Page(/tutorials/usage/
.Pages Pages(0)
.File tutorials/usage/selectable-component-properties/
.File.Dir "tutorials/usage/selectable-component-properties/"
.WordCount 563
1: images/selectable-component-properties-001.png
2: images/selectable-component-properties-002.png
3: images/selectable-component-properties-003.png
4: images/selectable-component-properties-004.png
5: images/selectable-component-properties-005.png
6: images/selectable-component-properties-006.png
7: images/selectable-component-properties-007.png
8: images/selectable-component-properties-008.png
9: images/selectable-component-properties-009.png
10: images/selectable-component-properties-010.png
11: images/selectable-component-properties-011.png
12: images/selectable-component-properties-012.png
13: images/selectable-component-properties-013.png
14: images/selectable-component-properties-014.png
15: images/selectable-component-properties-015.png
16: images/selectable-component-properties-016.png
17: images/selectable-component-properties-017.png
18: images/selectable-component-properties-018.png
19: images/selectable-component-properties-019.png
20: images/selectable-component-properties-020.png

Tutorial: How to use Selectable component properties.


Creating less components by using the selectable component properties.


Start a new component (or use an existing one to change).

Creating a new component

Open the datasheet for your component. For example the Sun cartridge MWEP.

The fixed part is MWEP-D. The selectable parts are Factory set, Seal material and Material/coating.
At saving the selectable parts are saved as an underscore to indicate this (is not necessary).

Model code MWEP

So the file to save will be MWEP-D___.hcf

Go to the question mark(flexible sections) at Type:

Model code MWEP

You will see the next window appear.

Ordering code sections

Type at Ordering code: the fixed part MWEP-D. Behind this part we are going to add the selectable parts for the key.

The selectable parts will be like this [……..]

So for the:

factory set -> [Factory set]
Seal material -> [Seals]
Material/coating -> [Material]

Try to keep the names for the variables short. This keeps the Type key readable.

Ordering code sections

Now press Update to see the key at Default code. The variables are created.

Ordering code sections

Now you can start adding the information for the variables.

Ordering code sections

If you have a standard setting you can use this as a default in the key. Add the = sign behind the [….].

For example [Factory set]=H

After pressing Update the Default code will be adapted and this is what you will see in your Bill of materials.

Ordering code sections

If you have a component with standard settings the best thing to do is to enter those settings in the component data.

Technical data and attributes

If you don’t do this the values will be empty at inserting the component in your schematic. Close the component.

It is possible to change the value automatically for the PRESSURE setting, or other attributes when switching your component to another setting in your schematic. After inserting it in your schematic it will look like this.

Sun Hydraulic - MWEP

Now double click on the component to see the component properties.

MWEP component properties

Now switch for example the pressure setting from H to J.

MWEP component properties

You see the value for the PRESSURE is changed. In the schematic it will change also.

Sun Hydraulic - MWEP

To change the information you have to use the following prefix in the flexible sections.

attr_PRESSURE(or another attribute)=280 bar(or other text).

See picture below.

Ordering code sections

Changing the information in the Technical data and External references.

Technical data and attributes External references

Use the following prefixes:

Clamping Length=…

See the example above.

If you have more than one variable you must separate them by the pipe line sign [|].


It is possible to create rules in the selectable component properties. With this rules you can make allowed combinations in the code.

For the allowed options you must use:


For the not allowed options:


For example a directional control valve from Bosch Rexroth. For the option W110R(DC solenoid with rectifier for AC voltage) is only a central plug-in connection at the cover used. This has the DK6L code.

So the rule will be:


So if you select option W110R only the DK6L will be shown at the selectable part.

Component properties
Component properties
Component properties

At the next options you will see that there are more options to choose from because there are no rules for it.

The ordering code sections used for both examples can be found in the two text files.

Ordering code sections-MWEP.txt and Ordering code sections-4WE6.txt

The MWEP and 4WE6D-6X also can be found in the online library including the selectable code.