×
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

Reset Line Numbering?

Reset Line Numbering?

Reset Line Numbering?

(OP)
My senior design team is using ANSYS for the analysis of gas turbine rotors. We're only doing a 2D analysis, so the geometry is created directly in ANSYS using keypoints and lines. We're trying to vary individual geometries using a do loop. However, when the loop goes back to the top to recreate geometry, the line numbering no longer matches that of the macro command. There's much more to the macro than shown (creating more lines through lsbl commands,etc.). We'd like to just reset the numbering if possible. Is there anyway to reset line numbering, or should we just use the do loop counter to change the line numbers? Thanks in advance.

RE: Reset Line Numbering?

The best thing you can do is to avoid using any sort of boolean operation in geomtry creation.  Many times this yields geometry numbers which are unpredictable which is what you are experiencing.  It may be a little more work but I would try modeling everything parametrically using a bottom up approach (creating keypoints first, lines, then areas, etc) rather than creating the geometry and modifying it using booleans.  Learn to use the selection commands to select by location and also use *get commands to determine coordinates of keypoints, lines, and areas to aid you in the modeling process.  Once you have a good macro to accomplish what you're trying to model everything else is downhill from there.

Good luck,
-Brian

RE: Reset Line Numbering?


Try NUMCMP,Line a the start of the loop.

RE: Reset Line Numbering?

I always avoid any selection logic that uses entity numbering.  Try and select by location instead, it may take a little bit longer to setup, but save you headaches in the long run.

Also check out the NUMSTR command.  You can use that to define the starting number for any subsequently created lines.  

Hope this helps,
Doug

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