×
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

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

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

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

(OP)
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.

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