Download Argus ONE User`s Guide

Transcript
Chapter 5
Exporting a Project
Name
Syntax
Arguments
If
If
End if
0, 1 or a logical expression
•
•
•
181
This command is a block command.
The script command within the If block will be executed only when the If
argument is true.
True = 1, False = 0, anything different from zero returns True.
The If command enables you to nest script commands within it, that will be
executed only if the logical expression holds. For instance, to export the node
number and coordinates of boundary nodes only:
Redirect output to: $BaseName$
Loop for: Nodes
If: NodeOnBoundary()
Start a new line
Export expression: NodeNumber(); [I8]
Export expression: PositionX(); [E15.5]
Export expression: PositionY() [E15.5]
End line
End if
End loop
End file
Name
Syntax
Arguments
Comment
#
Any text
The comment command enables you to comment your export template scripts
to make them more readable by you. For instance, to clarify the last example
you can add comments at important points.
Redirect output to: $BaseName$
Loop for: Nodes
# Loop to export Boundary Nodes Only!!!
If: NodeOnBoundary()
# This if statement is true for boundary nodes!
Start a new line
Export expression: NodeNumber(); [I8]
Export expression: PositionX(); [E15.5]
Export expression: PositionY() [E15.5]
End line
End if
End loop
End file
The comments you insert in a script are not exported.
Argus ONE User’s Guide