×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

character for starting a comment?

character for starting a comment?

character for starting a comment?

(OP)
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...
smile
thank you!
solari

RE: character for starting a comment?

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

RE: character for starting a comment?

(OP)
hi stringmaker,
hmm...you may be right, i just thought that once i knew a way to make a multiline comment...thanks anyway!
smile

RE: character for starting a comment?

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources