4.6. Using the _STATUS and _RETURN Parameters in Macros

www.kxcad.net Home > CAE Index > ANSYS Index > Release 11.0 Documentation for ANSYS


Your Ad Here

The ANSYS program generates two parameters, _STATUS and _RETURN, that you can also use in your macros. For example, you might use the _STATUS or _RETURN value in an "if-then-else" construct to have the macro take some action based on the outcome of executing an ANSYS command or function.

Solid modeling functions generate the _RETURN parameter, which contains the result of executing the function. The following table defines the _RETURN values for the various solid modeling functions:

Table 4.1  _RETURN Values

CommandFunction_RETURN Value
Keypoints
KDefines a keypointkeypoint number
KLKeypoint on a lineKeypoint number
KNODEKeypoint at nodeKeypoint number
KBETWKeypoint between two keypointsKP number
KCENTERKeypoint at centerKP number
Lines  
BSPLINGenerate splineLine number
CIRCLEGenerate circular arc lines First line number
LLine between two keypointsLine number
L2ANGLine at angle with two linesLine number
LANGLine tangent to two linesLine number
LARCDefines a circular arcLine number
LAREALine between two keypointsLine number
LCOMBCombine two lines into oneLine number
LDIVDivide line into two or more linesFirst keypoint number
LDRAGLine by keypoint sweepFirst line number
LFILLTFillet line between two liensFillet line number
LROTATArc by keypoint rotationFirst line number
LSTRStraight lineLine number
LTANLine at end and tangentLine number
SPLINESegmented splineFirst line number
Areas
AArea connecting keypointsArea number
ACCATConcatenate two or more areasArea number
ADRAGDrag lines along pathFirst area number
AFILLTFillet at intersection of two areasFillet area number
ALArea bounded by linesArea number
ALPFILLAll loopsArea number
AOFFSTArea offset from given areaArea number
AROTATRotate lines around axisFirst area number
ASKINSkin surface through guiding linesFirst area number
ASUBArea using shape of existing areaArea number
Volumes
VVolume through keypointsVolume number
VAVolume bounded through areasVolume number
VDRAGDrag area pattern to create volumeFirst volume number
VEXTVolume by extruding areasFirst volume number
VOFFSTVolume offset from given areaVolume number
VROTATVolume by rotating areasFirst volume number

Executing an ANSYS command, whether in a macro or elsewhere, generates the parameter _STATUS. This parameter reflects the error status of that command:

Your Ad Here