Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

ANSYS APDL Lines ID define

Status
Not open for further replies.

Juan Campos

Mechanical
May 8, 2019
1
Hi everbody,

I have a general question about ANSYS APDL: I have to create a big model and I would like to control the ID that Ansys gives to the lines that I creat. Is there a way to give an ID to a line without Ansys giving just a correlative number?

thank you very much

Juan Campos
Principal CAD/FEM Engineer
WindGuard
Varel, Germany
 
Replies continue below

Recommended for you

When you use the L command (or any other Line generating command) then the first one will be line one, the second line defined will be line nr 2 and so on, so as far as I know there is no way.


One can use though components (CM command) and then assign the lines to them. To select them one can use CMSEL command
 
[pre]
NUMSTR,LINE,25 ! controls the starting number for any subsequently created lines.
k,1,0,10
k,2,0,30
L,1,2
My_ID=_return
[/pre]

Will store the line number in the variable My_ID, which you can later use to reference the line. May I ask what you want to achieve with this? There might be other solutions to your problem, the selection logic in APDL is quite good and might offer you a solution.

Just my 0.02 SEK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor