How to export a figure of the Contact and Target Body View by script in mechanical?

amaniyar
amaniyar Member, Employee Posts: 1
First Anniversary Ansys Employee
✭✭✭

The customer wants to export an image with contact body view and target body view.

Answers

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 327
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭

    Not sure if this can be done nat., but below is a workaround that might be of some help.

    https://discuss.ansys.com/discussion/1649/how-do-i-export-images-with-user-defined-size-and-user-defined-legend-font

  • RvdH
    RvdH Member Posts: 14
    First Anniversary First Comment
    **

    I have the same question. The suggested workaround could be helpful but the missing part is the width of the Body View window. Without it only the larger left window is captured. Can you help me with that part? The commands used seem to be undocumented.

  • RvdH
    RvdH Member Posts: 14
    First Anniversary First Comment
    **

    The workaround works if one activates the Graph window before getting the graphics window dimensions. It becomes the same horizontal size as: graphics window + body view window and its horizontal dimension can be retrieved. This provides sufficient info to create a complete screenshot of contact + body views.