Q. The customer wants to define directionally dependent mass values (massx, massy and massz) for a point mass in Workbench.
Can this be done?
A. Yes. The point mass is a MASS21 element. It would involve using a command object to modify the MASS21 real constant properties representing the point mass.
Below is a sample script for doing this.
*****************
/prep7
esel,s,ename,,21 !select mass 21 element of interest
*get,elem_num,elem,0,num,max !parameterize the element number
*get,r_elem,elem,elem_num,attr,real !parameterize the real constant number
rmodif,r_elem,1,2,3,4 !modify the real constant values
allsel
/solu
*******************
Q. The customer wants to define directionally dependent mass values (massx, massy and massz) for a point mass in Workbench. Can this be done? A. Yes. The point mass is a MASS21 element. It would involve using a command object to modify the MASS21 real constant properties representing the point mass. Below is a sample script for doing this. ***************** /prep7 esel,s,ename,,21 !select mass 21 element of interest *get,elem_num,elem,0,num,max !parameterize the element number *get,r_elem,elem,elem_num,attr,real !parameterize the real constant number rmodif,r_elem,1,2,3,4 !modify the real constant values allsel /solu ******************* 

