Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTML
<center>
  <br>
  <img src="/wiki/download/attachments/24740125/Creating Element_0.jpg"/>
  <br> 
</center>

On the second page add the required input data:

HTML
<center>
  <br>
  <img src="/wiki/download/attachments/24740125/Creating Element_1.jpg"/>
  <br> 
</center>

On the third page of the wizard you can add parameters for the command line tool. Later you would be able to set values for the parameters in the Property Editor.

HTML
<center>
  <br>
  <img src="/wiki/download/attachments/24740125/Creating Element_21.jpg"/>
  <br> 
</center>

On the next page add the required output data:

HTML
<center>
  <br>
  <img src="/wiki/download/attachments/24740125/Creating Element_32.jpg"/>
  <br> 
</center>

For each input or output you should:

...

  • Input a name (letters, numbers and underscores are allowed in the name).
  • Select its type: boolean, number, string or URL.
  • Optionally input the description.

On the last next page of the wizard you should input the execution string, i.e. the command that would be executed. 

HTML
<center>
  <br>
  <img src="/wiki/download/attachments/24740125/Creating Element_43.jpg"/>
  <br> 
</center>

The signature of the execution string depends on the command that is launched. But the general rule is that input/output data and attributes have prefix $. You can set the parameterized description for the new element (the description that appears not in property editor but on the element itself). In the parameterized description, you also can use parameters substitution with prefix $. If the paths in the execution string contain spaces, they must be enclosed with quotes.

For example? let there be some perl script “myScript.pl” that accepts an input file as the first attribute and accepts the second attribute denoted as “param1”. The command may look as follows:

Code Block
perl [path_to_script]myScript.pl $infile $param1 > $outfile

Here infile and outfile are input and output data set on the step 2, param1 is an attribute set on the step 3.

On the same On the next wizard page you can optionally input the description of the element. It would be shown on the element on the Scene. The description can be parameterized. This means that if you input e.g. an attribute name (with prefix $), the name on the element would be substituted with the value of the corresponding parameter:

HTML
<center>
  <br>
  <img src="/wiki/download/attachments/24740125/Creating Element_4.jpg"/>
  <br> 
</center>

 

 

 

 

For example input the following parameters:

...