Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Adding Y location and sorting them other 2 columns by this value

Status
Not open for further replies.

smaciek

Aerospace
Jun 4, 2014
5
US
Hello everybody,

I have been struggling with this problem whole Friday and did not find a suitable answer (for my "homework") during the weekend. Hope you will help me guys finding it.
I've got two rows of nodes which I want to connect by element contac12 (I can do that manually but I have many of such pairs so I need a macro). So what I need is to get nodes numbers and Y location in two columns (which will be sorted automatically by nodes number) and then sort it by Y location of all nodes. I created such small macro so far but getting Y location brings me this warning
Code:
Some entities requested in the *vget were undefined

This is macro code:

Code:
*get,temp1_num,node,,count		
*get,temp1_min,node,,num,min

*DIM,t1_ar,ARRAY,temp1_num,3,1, , , 
*vget,t1_ar(1,1),NODE,,NLIST,,,,4
*Vget,t1_ar(1,3),NODE,,LOC,Y,,,4

Another question is, if I will manage it can you tell me, how can I get values from cell ex. (3,1) and (3,2) during creating elements?

e,...,...


Thanks in advance for your help, I will appreciate it greatly!

Regards, Maciek.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top