×
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

Store the result of a boolean operation
2

Store the result of a boolean operation

Store the result of a boolean operation

(OP)
Hellow

If i make a command like "vsbv,1,2" then a new line with a number is created. If i want to store the number of that line is there any way? I can see the number of the new line in ANSYS output window (not GUI) then I think there can be a way to store the name of the new line/es.

Thank you very much

PD I have this:

*DO,I,6,(n_l+n_l+n_c+3)
    *If,mod(I,2),EQ,0,THEN
    VSBV,1,I,DELETE,DELETE
    *else
    VSBV,4,I,DELETE,DELETE
    *ENDIF
*ENDDO
and I want to store the result of each VSBV in a Var, for example VAR(1),VAR(2),...., and then use then in a LEMESH command.

Thank you very much

RE: Store the result of a boolean operation

Look at the help for the _status and _return command

Hope this helps,
Doug

RE: Store the result of a boolean operation

Just to add to what Doug said; _status and _return are actually scalar parameters.  These parameters are intended to be used in conditional statements which it looks like you have in your macro.  You can view these parameters by issuing *stat,_prm (since they're hidden parameters internal to Ansys).

RE: Store the result of a boolean operation

Hi,
also the use of *GET functions with the proper arguments could be of some help...

Regards

RE: Store the result of a boolean operation

(OP)
Ok I will study in the help all you say,I will post my impresions them (probably tomorrow). Today unfortuanetly I had no time for ANSYS...
Thank you very much for the help!

RE: Store the result of a boolean operation

(OP)
thank you very much you really help me with my problem!

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