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!

Reset Line Numbering?

Status
Not open for further replies.

UConnSD

Aerospace
Mar 18, 2007
2
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.
 
Replies continue below

Recommended for you

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
 

Try NUMCMP,Line a the start of the loop.
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor