Please enable Javascript to view this site.

GENIUS TOOLS Model Processor

Navigation: List of all tasks > Model Processor

Set User Variable From Dictionary

Scroll Prev Top Next More

This task sets a user variable from a dictionary. If you are working with regular expressions or wildcards, you can add multiple user variables.

The cross-task settings can be found in the chapter General task settings.

Model filter

This task can revise the following models: Parts, Assemblies and Drawings

The task-specific settings are:

mp_Task_SetUserVariableDict

1.Look-Up Key

Enter the value of the target variable.

2.Variable

Enter the name of the user variable to be set. The name is addressed with %user:NAME%.

3.Dictionary File

Enter the file that contains the translations or browse the file system using the Browse button OpenFolder.

4.Format

Select the format of the dictionary file:

–CSV

–JSON

–SQLite

5.Format-specific settings
Depending on the Format (4) selected , different other setting options are available, see Format-Specific Settings. You can use RegEx. The icon RegexButton opens the RegEx Editor.

6.Options

–Translate parts of the values if no complete translation is found
Activate this checkbox to apply the translation of sections. If the value is e.g. I will be translated, the system will search for a translation in the following order and, if possible, parts will be translated:
               I will be translated
               I will be
               I will
               I
               will be translated
               be translated
               will
               be translated
               translated
If a translation is found for part of the text, this is used. The search for a translation continues for the rest of the text.

–If no translation found
Select how to proceed with values if no translation was found for them:
Do nothing: The target parameter remains unchanged, regardless of whether a target parameter exists or not.
Store a fallback value: By selecting this option, the Fallback value line is activated for editing.
Create empty user variable: If no target parameter exists yet, it is created empty. Otherwise, the target parameter remains unchanged.
Copy source value: The target parameter is set to the same value as the source parameter.

–Fallback Value
You can enter a fallback value for the target parameter if you have selected the Store a fallback value option under If no translation found.

Tip: You can use Variables.

Created with Help & Manual 8 and styled with Premium Pack Version 4 © by EC Software