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!

character for starting a comment?

Status
Not open for further replies.

Solari

Civil/Environmental
May 18, 2005
4
hi,
just a very short question:
i know the character for starting a single-line comment which is a "!". but what is the character to start (and to end) a comment over more than 1 line in a batch file for ansys? i don't want to write a "!" in front of every line...
:)
thank you!
solari
 
Replies continue below

Recommended for you

Solari,
It looks like you're stuck then. There is no other substitute for '!' to my knowledge. You will need to comment out every line that is not to be taken as input. Some other options you have for flagging comments just in a slightly different format are the C*** and /COM commands. I use the C*** command quite frequently as it shows up nicely in log and output files.

-Brian
 
hi stringmaker,
hmm...you may be right, i just thought that once i knew a way to make a multiline comment...thanks anyway!
:)
 
Hi,
I confirm what Stringmaker says: no way to create a "multiline" comment. There is a reason for that: APDL is written in simple ASCII format (pure-text) so there is absolutely no definition of "line length": a line finishes where there is a carriage return (or line-feed, or both). It also means that after a carriage return, a new line will begin, which will be completely independent from the previous.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor