Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

*USE in *ABBR command

Status
Not open for further replies.

andreamordini

Structural
Jun 2, 2006
34
When I call a macro from a macro library by using the *ABBR command with:
*ABBR, command, *USE, macroname
at startup I obtain:
* no longer valid as comment character - please use !
and the abbreviation is cancelled.
Do you know what the problem could be?

andrea

-------------------------------------------
Andrea Mordini, Civil Engineer, Ph.D.
-------------------------------------------
 
Replies continue below

Recommended for you

Hi,

it works like that:

*abb,command,macroname.mac,arguments

Ansys will first search in the Work Directory and than in the APDL directory.

If you are usig a mcro from a macro library, you must call a macro, who will call the other macro from the library,

Code:
*abb,command,mainmacro.mac ! calls main macro

The content of main macro:

Code:
*uli,libname,ans
*use,macroname

Regards,
Alex

 
But in this case I have to write a different MAC file for each macro... there's not a big improvement in using a library...
[sad][sad]

andrea

-------------------------------------------
Andrea Mordini, Civil Engineer, Ph.D.
-------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor