Ansys Learning Forum › Forums › Installation and Licensing › Ansys Products › How to get the position of selected nodes in apdl using vget command? › Reply To: How to get the position of selected nodes in apdl using vget command?
Â
Â
Just to say that it does not work. I dont know why it returns the location of all nodes instead of the selected ones.
You could check it through my following codes which returns a 484*1 array instead of 18*1 array.
/BATCH Â
/input,menust,tmp,”
WPSTYLE,,,,,,,,0
/NOPR Â Â
KEYW,PR_SET,1 Â Â
KEYW,PR_STRUC,1Â
KEYW,PR_THERM,0Â
KEYW,PR_FLUID,0Â
KEYW,PR_ELMAG,0Â
KEYW,MAGNOD,0 Â Â
KEYW,MAGEDG,0 Â Â
KEYW,MAGHFE,0 Â Â
KEYW,MAGELC,0 Â Â
KEYW,PR_MULTI,0Â
/GOÂ
/PREP7 Â
ET,1,SOLID185 Â Â
MPTEMP,,,,,,,, Â
MPTEMP,1,0 Â
MPDATA,EX,1,,1e9
MPDATA,PRXY,1,,.3 Â Â
MPTEMP,,,,,,,, Â
MPTEMP,1,0 Â
MPDATA,DENS,1,,6700Â
BLOCK,0,10,0,10,0,1,
FLST,5,8,4,ORDE,2 Â Â
FITEM,5,1 Â Â
FITEM,5,-8 Â
CM,_Y,LINE Â
LSEL, , , ,P51XÂ
CM,_Y1,LINEÂ
CMSEL,,_Y Â Â
LESIZE,_Y1, , ,10, , , , ,1Â
MSHAPE,0,3DÂ
MSHKEY,1
CM,_Y,VOLU Â
VSEL, , , , Â Â Â 1Â
CM,_Y1,VOLUÂ
CHKMSH,’VOLU’  Â
CMSEL,S,_Y Â
VMESH,_Y1 Â Â
CMDELE,_Y Â Â
CMDELE,_Y1 Â
CMDELE,_Y2 Â
WPSTYLE,,,,,,,,0
FLST,2,44,1,ORDE,12Â
FITEM,2,1 Â Â
FITEM,2,-11Â
FITEM,2,122Â
FITEM,2,143Â
FITEM,2,153Â
FITEM,2,-161
FITEM,2,243Â
FITEM,2,-244
FITEM,2,267Â
FITEM,2,-268
FITEM,2,287Â
FITEM,2,-304
/GOÂ
D,P51X,ALL, , , , , , , , , , Â Â
ANTYPE,4
TRNOPT,FULLÂ
LUMPM,0
ASEL,S,AREA,,6 Â
APLOT,Â
NSLA, S, ALL
*VGET, NAPOSX, NODE, ALL, LOC,  X
FINISH Â
Any suggestion?
Â
Â