ansys.net search results
quick file search:
    home » search results
 
 
Undocumented Features (30 entries)
 
*GET,,COMMON
  *get,parm,COMMON,,d3com2,,int,31
Gets the status of /UIS,MSGPOP. When writing macros you sometimes don't want those pesky warning messages to pop up all the time, so you use /uis,msgpop,3 to suppress them and put them back on with /uis,msgpop,0. The problem is if your macro is called by a macro that changed the msgpop status, then you kind of mess stuff up. The answer is to get the msgpop status before you change it then set it back.

Example usage:

*get,_oldMPS,COMMON,,d3com2,,int,31
/uis,msgpop,3
! Do my stuff
! ...
! ...
! ...
! Done with the stuff I want to suppress messages on
/uis,msgpop,_oldMPS

[permalink]
 
Average Rating: 9.6 (26 votes)  
Rate this item:
 
*MOPER
  *MOPER,Eloc(1,1),XYZ(1,1),INTP,Elem(1)
where:
*dim,XYZ,array,nPts,3
*dim,Elem,array,nPts
*dim,Eloc,array,nPts,3

This command finds the element containing the XYZ point, rather than the element with the closest centroid. The Eloc array is the element coordinates of the point.
Compare this, for example, with the *MOPER,,,ENEAR option.
[permalink]
 
Average Rating: 7.1 (7 votes)  
Rate this item:
 
*UILIST
  *UILIST,filename,ext,dir
Lists the contents of a file to a 'pop-up' window when running interactively. It is similar to the *LIST command but this version runs from within a macro while *LIST does not.
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
/AN3D
  /AN3D for 3D annotation is documented at 5.6. It is undocumented but available at 5.5.
The following are the ANSYS 5.5 /AN3D commands.

/AN3D,POIN,x,y,z
/AN3D,LINE,x1,y1,z1,x2,y2,z2
/AN3D,AREA,npt,x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4
/AN3D,ARRO,symsiz,x1,y1,z1,x2,y2,z2
/AN3D,TEXT,x,y,z,text
/AN3D,SYMB,itype,x,y,z,size

[permalink]
 
No rating yet  
Rate this item:
 
/DEV
  /DEV,PSFN,NINC
Turn off incrementing of JPEG filenames (suppress the 'nnn' in jobnamennn.jpg).

/DEV,PSFN,NONINC
Resume incrementing of JPEG files.
[permalink]
 
Average Rating: 10.0 (3 votes)  
Rate this item:
 
/DIRGET
  /dirget,parm,filename,fileext
Gets the list of files with the file extension "filename" or "fileext"
For example:
/dirget,_str,all,tif
Gets all filenames with extension "TIF"
[STI: Note: This may only work on UNIX at 5.6.1, not on NT. I keep getting bombed out of ANSYS using this command on NT. Also, for 5.7 and above, look at the /INQUIRE command and strings for same functionality.]
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
/ENCRYPT
  /ENCRYPT,Encryption_key,File_name,File_ext,Directory_Path/
The commands /ENCRYPT and /DECRYPT allow one to encrypt macros. See APDL Programmer's Guide for more details.
[permalink]
 
Average Rating: 8.3 (6 votes)  
Rate this item:
 
/HOLD
  /HOLD,filename,timeint,timeout
Read a command from file "filename" if it exists. If it doesn't exist, wait "timeint" seconds, then keep trying again until "timeout" seconds.
[permalink]
 
Average Rating: 8.6 (7 votes)  
Rate this item:
 
/PNUM
  /PNUM,DOMAIN,1
Shows domains generated for domain decomposition solver (DDS). Beta at 5.6, 5.7, but it is documented at 6.0.
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
/RMTMP
  Removes/closes the file specified in /INPUT after it is read. /RMTMP should be the last command in the input file.
[permalink]
 
No rating yet  
Rate this item:
 
/TEE
  /TEE,(new,append,end),filename,ext,dir
Echos the input automatically to another text file designated as the model is created.
[STI: This is an official command in 5.6]
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
/TXTRE
  /TXTRE,file,88
This option allows placement of an image on the screen (anywhere you want). A typical example of putting your own picture/logo in the bottom-right corner of the Graphics window is shown below:
/txtre,file,88,'MYLOGO','PNG',,2
/anum,1,13,1.5297,-0.98938
/lsym,1.556,-0.990,0,88,0.000,1
where "MYLOGO.PNG" is the name of your image file and "2" can be "0" for pixmap/bitmap, "1" or "jpeg" for JPEG, and "2" or "png" for PNG, as noted in the online-help for /TXTRE.

A similar command (this one is documented in /TXTRE) to replace the graphical ANSYS logo with your own is:
/txtre,file,51,'MYLOGO','PNG',,2
[permalink]
 
Average Rating: 10.0 (11 votes)  
Rate this item:
 
/UI
  /UI, COPY, SAVE, JPEG
This undocumented option of the /UI command creates a JPEG file of the current graphics window. Also, see
/ui,copy,save,jpeg,graph,color,reverse,portrait or
/ui,copy,save,jpeg,grap,colo,norm,port,,100
[permalink]
 
Average Rating: 10.0 (7 votes)  
Rate this item:
 
/UI
  /UI, WSIZE, xstart, ystart, xdist, ydist
This moves/modifies the graphics window size. Specify xstart as pixels from left side of screen, ystart as pixels from top of screen, and distance in pixels.
For example, issue "/ui,wsize,175,175,700,700/1.325" to see the window positioned 175 pixels from top left corner of screen with a width of 700 (preserving 1.325 aspect ratio).
[permalink]
 
Average Rating: -2.0 (5 votes)  
Rate this item:
 
/UI
  /UI,RAISE
Raises the Graphics Window to the forefront. Useful with /UI,copy,save,jpeg to make sure no other toolbars, widgets, etc. obscure view.
[permalink]
 
Average Rating: 10.0 (3 votes)  
Rate this item:
 
/UI
  /ui,copy,save,png,graph,color,reverse,portrait,yes
Generates a PNG file of the active contents of the ANSYS Graphics window [verified at 6.0].
[permalink]
 
Average Rating: 10.0 (4 votes)  
Rate this item:
 
/XML
  /XML,filename,ext,directory
This ANSYS command allows to write current load step results in XML format for use in Workbench Simulation.
Similar to other ANSYS commands, the 2nd through 4th arguments allow specification of the filename to save to. "Filename" defaults to the jobname, "Ext" defaults to "xml", and "Directory" defaults to the current working directory. Use of this command will write out geometry and results, as specified by the XMLOPT undocumented command.

[permalink]
 
Average Rating: 8.9 (18 votes)  
Rate this item:
 
ABTOANS
  From 8.0 onwards, an undocumented macro ABTOANS allows user to convert an ABAQUS input file to ANSYS.
[permalink]
 
Average Rating: 8.0 (22 votes)  
Rate this item:
 
ANSYS and Tcl/Tk customization
  John Swanson
  Information on using Tcl/Tk with ANSYS to create customized GUI. Tcl/Tk is used in ANSYS, such as the Contact Wizard, Solution Control Wizard, or Materials GUI at 5.7/6.0.
[permalink]
 
Average Rating: 10.0 (27 votes)  
Rate this item:
 
ANSYS and UIDL customization
  John Swanson
  UIDL is the ANSYS language used to define the dialog boxes and Main Menu. This information is related to learning more about UIDL to create custom dialog boxes. An alternative is to use Tcl/Tk.
[permalink]
 
Average Rating: 9.5 (11 votes)  
Rate this item:
 
CMWRITE
  CMWRITE,Fname,Fext,Fdir,ipos,[_ | BLOCK | UNBLOCK]
Write component information to file, where ipos = 0,write at beginning of file, 1, write at end of file
For 7.0 and later.
[permalink]
 
Average Rating: 8.3 (12 votes)  
Rate this item:
 
Dynamic Prompt Timeout
  The dynamic prompt appears for 2 seconds by default in 6.0. To lengthen the time before the dynamic prompt disappears, do the following:
1) Make a backup of the file 'C:\Program Files\Ansys Inc\ANSYS61\LIB\Euidl1.0\scripts\anscmdprompt.itk'
2) Edit 'anscmdprompt.itk' at line 468, which contains the string " set _helpWinAfter [after 2000 \", and change the value to the time in miliseconds you wish to have the help visible.

[At 7.0, this is controlled by line 69 ' variable _helpWinTimer 20000' instead, and default is 20 seconds]
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
EXPROFILE
  EXPROFILE,ldtype,load,value,pname,fname,fext
Exports ANSYS data as CFX-Pre profile data.
To export ANSYS data to CFX-Pre, perform the following steps:
  1. Flag surface or volumetric data to export by an "interface number" with the VAL2 argument of SF,,FSIN,,val2 or BFE,,FVIN,,val2 commands
  2. Use EXUNIT command to specify units for export.
  3. Use EXPROFILE command to generate the CFX profile file.
For EXPROFILE, the following are the arguments:
ldtype: SURF or VOLU
load: for ldtype=SURF, DISP, TEMP, or HFLU; for ldtype=VOLU, DISP, FORC, or HGEN
value: surface or volume interface number specified with VAL2 argument of SF,,FSIN or BFE,,FVIN
pname: field name in CFX profile file
fname, fext: filename and extension for CFX profile file

[STI: beta in 9.0, fully documented in 10.0]
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
EXUNIT
  EXUNIT,ldtype,load,untype,name
Specifies units for export of ANSYS data as CFX-Pre profile data.
To export ANSYS data to CFX-Pre, perform the following steps:
  1. Flag surface or volumetric data to export by an "interface number" with the VAL2 argument of SF,,FSIN,,val2 or BFE,,FVIN,,val2 commands
  2. Use EXUNIT command to specify units for export.
  3. Use EXPROFILE command to generate the CFX profile file.
For EXUNIT, the following are the arguments:
ldtype: SURF or VOLU
load: for ldtype=SURF, DISP, TEMP, or HFLU; for ldtype=VOLU, DISP, FORC, or HGEN
untype: units are either COMM or USER
name: unit name is SI or FT for untype=COMM

[STI: beta in 9.0, fully documented in 10.0]
[permalink]
 
Average Rating: 9.4 (8 votes)  
Rate this item:
 
KEYW
  keyw,cuwidget
Resets menus in case they may be grey and inaccessible.
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
OPFACT
  OPFA,3LEV
To perform a 3-level BOX-BEHNKEN factorial analysis:
OPTYP,FACT
OPFA,3LEV

[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
PLOT33.F
  (ANSYS, Inc.)
  Old source code (ANSYS 5.4?) for PLOT33 program to read GRPH files (ANSYS Graphics Files)
[permalink]
 
No rating yet  
Rate this item:
 
RMXPORT
  RMXPORT,ATOV
Translate ANSYS ROM into Verilog-A

RMXPORT,VTOA
Translate Verilog-A into ANSYS ROM
[permalink]
 
No rating yet  
Rate this item:
 
RPnnn
  RPnnn, vinc1, vinc2, ...
The RPnnn command works similar to *REPEAT,nnn. For example, instead of using *REPEAT,3 to repeat the previous commands a total of 3 times, one can use RP3 instead. The second argument (value increment) of RPnnn is the same as the third argument of *REPEAT.
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
XMLOPT
  XMLOPT,options
This ANSYS command allows to write current load step results in XML format for use in Workbench Simulation.
"Options" can be the following:
  • ALL - all results
  • DOFS - nodal results
  • S - stress results at the nodes
  • EPEL - elastic strain
  • EPPL - plastic strain
  • (EPTO - total strain: obsolete)
  • CONT - contact results
  • PARM - parameters
  • RFOR - reaction forces
  • TG - thermal gradients at the nodes
  • TF - thermal flux at the nodes
  • (RESULTS - convenience label to include the S, EPTO, TG, TF results: obsolete)
See also /XML undocumented command to write results to file.

[permalink]
 
Average Rating: 7.5 (18 votes)  
Rate this item: