Skip to end of metadata
Go to start of metadata

New topics covered by this example:

  • Manage options values for a single option
  • Manage all options values
    The common input of the examples is the Rule Maker template (you can ask for it at arkitect-support@k-inside.com)

Manage option values for a specific option

The input of this example is the excel file which can be seen below:

Preparing the target model

Refer to the instructions of the first tutorial, but with using the type diagram below:

The target model should also have the appropriate Option structure. To perform the import of the excel file above, build the Option structure below:

Icon

You can refer to Working with Variants and Options of the arKItect Developer User's Guide documentation to build the option structure

Preparing the Rule Model and Rule File

Refer to the instructions of the first tutorial. In case of a single option value the purpose is to defined the path of the option in the Rule Model. Excel columns which store option value are considered as column attributes in the Rule Model. Specify the path to your option value in the contentId attribute and create the Rule Model below:

Importing

Perform the import in the target model below:

Now execute the import script you should get the target model below:


Now if you look at the variant property of the air conditioning subsystem its air conditioning option value should be set as yes as shown below:

Manage options values for all options

The purpose is now to import an excel file which describes in a column several options with corresponding options values in another column as shown below:

The target model is the same as above.

Preparing the Rule Model and Rule File

Refer to the instructions of the first tutorial. The two columns which store option names and options values are again column attribute in the Rule Model but their contentType attribute is now specified as AllOptionsName and AllOptionsValue as shown below:

Importing

Perform the import in the same target model as above.
Now execute the import script you should get the target model below:


Now if you look at the variant property of the air conditioning subsystem its air conditioning option value should be set as yes as shown below:

  • No labels