Getting constraint direction using tcl\tk script

Vikas Kumar_22189
Vikas Kumar_22189 Altair Community Member
edited October 2020 in Community Q&A

Hi all,

 

I am knowing the collector id which contains SPC or SPCD constraints.

When i am enabling that load collector it will display load constraint along with DOF assigned to that load as shown in below fig.

image.png.b0fa323bb7283e040f075811e564a16f.png

I need to get those DOF.

Manually we can get it by using review option of constraints, But i need data.

@tinh please let me know the soln.

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited March 2019

    Hi Vikas,

     

    try,

     hm_getvalue loads id=$constid dataname=comp1 #comp1 gives dof1 refer datanames of loads for more info #This method you will have to query each dof

    image.png.d54d28abf65309d81cd03a409ebf6e2e.png