General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Assigning an APDL Command to Multiple Items

    • Evgenii_K
      Subscriber
      Hi guys, I often come across the fact that I need to assign an APDL command to several hundred items, and so I decided to figure out how to do one command paste that will be assigned to all items at once. I have a test model of beams and shells, I want to change the shell properties to my own, assign them my own material number. Below I inserted a command that should change the properties of all shells, but something is wrong with it, can someone tell me what the problem is!n*SET,MAT_ID,101nDENS_=2400nEX_=206000nNUXY_=0.2nnMP,DENS,MAT_ID,DENS_,nMP,EX,MAT_ID,EX_,nMP,NUXY,MAT_ID,NUXY_,nn*get,typem,etyp,0,num,maxnet,typem+1,MAT_ID,1,1nesel,s,ename,,181nemodif,all,type,typem+1nallsel,alln
    • Rahul Kumbhar
      Ansys Employee
      Some commands are wrongly used. Please check following rearranged commandsn*get,typem,etyp,0,num,maxnMAT_ID = typem+1 !or you can also use *set command herenDENS_=2400nEX_=206000nNUXY_=0.2nnet,MAT_ID,181nMP,DENS,MAT_ID,DENS_,nMP,EX,MAT_ID,EX_,nMP,NUXY,MAT_ID,NUXY_,nnesel,s,ename,,181nemodif,all,type,MAT_IDnallsel,all
    • Evgenii_K
      Subscriber
      Thanks to Rkumbhar for help, this weekend I will have time to try to correct my mistakes.n
Viewing 2 reply threads
  • The topic ‘Assigning an APDL Command to Multiple Items’ is closed to new replies.